summaryrefslogtreecommitdiff
path: root/lib/stdbool_.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-31 13:48:07 +0000
committerJim Meyering <jim@meyering.net>2003-10-31 13:48:07 +0000
commit328a409b2129bd4b909c3baef5fef6f955159a9a (patch)
treebefe65a7927abd7b9b4d922476d7044612affa76 /lib/stdbool_.h
parentd0f832a512f3ba43c2b1113d665cf80cdc4be482 (diff)
downloadcoreutils-328a409b2129bd4b909c3baef5fef6f955159a9a.tar.xz
Update from gnulib.
Diffstat (limited to 'lib/stdbool_.h')
-rw-r--r--lib/stdbool_.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdbool_.h b/lib/stdbool_.h
index 3dbb51b24..e33715a61 100644
--- a/lib/stdbool_.h
+++ b/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". */