56 |
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same |
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same |
57 |
definitions below, but temporarily we have to #undef them. */ |
definitions below, but temporarily we have to #undef them. */ |
58 |
#ifdef __BEOS__ |
#ifdef __BEOS__ |
59 |
|
# include <OS.h> /* defines bool but not _Bool */ |
60 |
# undef false |
# undef false |
61 |
# undef true |
# undef true |
62 |
#endif |
#endif |
70 |
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' |
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' |
71 |
(see ISO C 99 6.3.1.1.(2)). So we add a negative value to the |
(see ISO C 99 6.3.1.1.(2)). So we add a negative value to the |
72 |
enum; this ensures that '_Bool' promotes to 'int'. */ |
enum; this ensures that '_Bool' promotes to 'int'. */ |
73 |
#ifndef __cplusplus |
#if !(defined __cplusplus || defined __BEOS__) |
74 |
# if !@HAVE__BOOL@ |
# if !@HAVE__BOOL@ |
75 |
# if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1) |
# if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1) |
76 |
/* Avoid stupid "warning: _Bool is a keyword in ISO C99". */ |
/* Avoid stupid "warning: _Bool is a keyword in ISO C99". */ |