[Piglit] [PATCH 08/13] shader_runner: Remove unneeded MSVC workarounds

Chad Versace chad.versace at linux.intel.com
Mon Dec 3 21:59:36 PST 2012


Piglit provides C99 headers for MSVC. Stop defining C99 stuff and instead
just include the C99 headers.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 tests/shaders/shader_runner.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index ca9e1e2..df482dd 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -22,20 +22,17 @@
  */
 
 #define _GNU_SOURCE
-#if defined(_MSC_VER)
-#define bool BOOL
-#define true 1
-#define false 0
-#else
+
 #include <stdbool.h>
-#endif
 #include <string.h>
 #include <ctype.h>
+
 #if defined(_WIN32)
 #include <stdlib.h>
 #else
 #include <libgen.h>
 #endif
+
 #include "piglit-util-gl-common.h"
 #include "piglit-vbo.h"
 
-- 
1.7.11.7



More information about the Piglit mailing list