On 08/12/2014 11:18 AM, Emil Velikov wrote:
MSVC 2013 provides _MSC_VER 1800 and __STDC_VERSION__ < 199901L. As
such the preprocessor tries ot evaluate the undefined symbol __GNUC__,
s/ot/to/
agrees that is less than 3 and we end up with the following error
message:
include\c99\stdbool.h(39) : error C2632: 'char' followed by 'bool' is
illegal.
Signed-off-by: Emil Velikov <[email protected]>
---
include/msvc/c99/stdbool.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/msvc/c99/stdbool.h b/include/msvc/c99/stdbool.h
index dd55255..089f8d4 100644
--- a/include/msvc/c99/stdbool.h
+++ b/include/msvc/c99/stdbool.h
@@ -35,7 +35,7 @@
#define bool _Bool
/* For compilers that don't have the builtin _Bool type. */
-#if (defined(_MSC_VER) && _MSC_VER < 1800) || (__STDC_VERSION__ < 199901L &&
__GNUC__ < 3)
+#if (defined(_MSC_VER) && _MSC_VER < 1800) || (__STDC_VERSION__ < 199901L &&
defined(__GNUC__) && __GNUC__ < 3)
typedef unsigned char _Bool;
#endif
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit