]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Better support for BeOS.
authorBruno Haible <bruno@clisp.org>
Mon, 27 Oct 2003 13:55:07 +0000 (13:55 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:06 +0000 (12:11 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/stdbool_.h

index 3e15fa353d22187b7999fcb7cfad8ff7e5f899ff..e7ab59d09eed467b8fb54a8c53835fae48ab83a9 100644 (file)
@@ -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.
index 3dbb51b24b68b20621d7a6bb61d17cc75d3f9082..e33715a615029e64ae6b705db8b841976c9aaa71 100644 (file)
@@ -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".  */