diff options
author | Bruno Haible <bruno@clisp.org> | 2003-10-27 13:55:07 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:11:06 +0200 |
commit | 06784fb7630f0d8511682df4d72e0e006e60e8b4 (patch) | |
tree | 42f4bcbc08073979cf3eda5228a5c6b01c1789ff /gettext-tools/lib | |
parent | 3697d5dbaa9b3a2558bfac0700e18480d477872c (diff) | |
download | external_gettext-06784fb7630f0d8511682df4d72e0e006e60e8b4.zip external_gettext-06784fb7630f0d8511682df4d72e0e006e60e8b4.tar.gz external_gettext-06784fb7630f0d8511682df4d72e0e006e60e8b4.tar.bz2 |
Better support for BeOS.
Diffstat (limited to 'gettext-tools/lib')
-rw-r--r-- | gettext-tools/lib/ChangeLog | 4 | ||||
-rw-r--r-- | gettext-tools/lib/stdbool_.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 3e15fa3..e7ab59d 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-10-27 Bruno Haible <bruno@clisp.org> + + * stdbool_.h: Better support for BeOS. + 2003-10-14 Bruno Haible <bruno@clisp.org> * hash.h: Make it includable in C++ mode. diff --git a/gettext-tools/lib/stdbool_.h b/gettext-tools/lib/stdbool_.h index 3dbb51b..e33715a 100644 --- a/gettext-tools/lib/stdbool_.h +++ b/gettext-tools/lib/stdbool_.h @@ -56,6 +56,7 @@ /* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same definitions below, but temporarily we have to #undef them. */ #ifdef __BEOS__ +# include <OS.h> /* defines bool but not _Bool */ # undef false # undef true #endif @@ -69,7 +70,7 @@ (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' (see ISO C 99 6.3.1.1.(2)). So we add a negative value to the enum; this ensures that '_Bool' promotes to 'int'. */ -#ifndef __cplusplus +#if !(defined __cplusplus || defined __BEOS__) # if !@HAVE__BOOL@ # if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1) /* Avoid stupid "warning: _Bool is a keyword in ISO C99". */ |