r300g/tests: Include stdio.h.
authorVinson Lee <vlee@freedesktop.org>
Fri, 27 Feb 2015 05:00:15 +0000 (21:00 -0800)
committerVinson Lee <vlee@freedesktop.org>
Fri, 27 Feb 2015 05:01:32 +0000 (21:01 -0800)
Fix build error.

  CC       compiler/tests/r300_compiler_tests-radeon_compiler_regalloc_tests.o
compiler/tests/radeon_compiler_regalloc_tests.c: In function ‘test_runner_rc_regalloc’:
compiler/tests/radeon_compiler_regalloc_tests.c:57:3: error: implicit declaration of function ‘fprintf’ [-Werror=implicit-function-declaration]
   fprintf(stderr, "Failed to load program\n");
   ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/gallium/drivers/r300/compiler/tests/radeon_compiler_regalloc_tests.c

index 5306b08aa7c5692bbcca4936432b927b39a80096..e1b6b248fe254fd1f46b3df58f123104925f7963 100644 (file)
@@ -23,6 +23,8 @@
  * Author: Tom Stellard <thomas.stellard@amd.com>
  */
 
+#include <stdio.h>
+
 #include "radeon_program_pair.h"
 
 #include "r300_compiler_tests.h"