Files
haikuports/app-arch/gzip/patches/gzip-1.3.12-stdbool_.h.diff
2008-07-30 16:49:08 +00:00

21 lines
901 B
Diff

--- stdbool_.h 2008-05-14 14:48:48.000000000 +0000
+++ gzip-1.3.12/lib/stdbool_.h 2007-03-30 23:56:06.000000000 +0000
@@ -58,7 +58,7 @@
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
definitions below, but temporarily we have to #undef them. */
-#if defined __BEOS__ && !defined __HAIKU__
+#ifdef __BEOS__
# include <OS.h> /* defines bool but not _Bool */
# undef false
# undef true
@@ -73,7 +73,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'. */
-#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__)
+#if defined __cplusplus || defined __BEOS__
/* A compiler known to have 'bool'. */
/* If the compiler already has both 'bool' and '_Bool', we can assume they
are the same types. */