SunPro C Compiler also has a _Bool builtin.

Also add stdbool.h to the MANIFEST
This commit is contained in:
Todd C. Miller
2011-12-02 15:34:01 -05:00
parent 0e26e43b99
commit feaad3aff4
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View 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