]> granicus.if.org Git - sudo/commitdiff
SunPro C Compiler also has a _Bool builtin.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Dec 2011 20:34:01 +0000 (15:34 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Dec 2011 20:34:01 +0000 (15:34 -0500)
Also add stdbool.h to the MANIFEST

MANIFEST
compat/stdbool.h

index 25d4b4fc05250fdc493f37c4f7f4bf9d8949fbf6..632a2b1bd8aec3ca5f0bd56cb2c30d7be477a2e6 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -43,6 +43,7 @@ compat/regress/fnmatch/fnm_test.in
 compat/regress/glob/files
 compat/regress/glob/globtest.c
 compat/regress/glob/globtest.in
+compat/stdbool.h
 compat/setenv.c
 compat/siglist.in
 compat/snprintf.c
index bd06a1db38bdf3235c479ae5941bccd8cc7f2a29..3771cfef30975129ec3faa22b39ece4e01811aaf 100644 (file)
@@ -10,7 +10,7 @@
 
 #ifndef __cplusplus
 
-#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__PCC__) || defined(lint)
+#if (defined(__GNUC__) && __GNUC__ >= 3) || (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550) || defined(__PCC__) || defined(lint)
 /* Support for _C99: type _Bool is already built-in. */
 #define false  0
 #define true   1