⛏️ index : buildtools.git

author Ingo Weinhold <ingo_weinhold@gmx.de> 2008-03-28 17:09:27.0 +00:00:00
committer Ingo Weinhold <ingo_weinhold@gmx.de> 2008-03-28 17:09:27.0 +00:00:00
commit
b7bf3a1d162e192993d913c08ac9b98fc13d1fe5 [patch]
tree
59989550eb4728f5c95e60fa6826d6a105bb36cc
parent
683555807669ba830e0b1c9bb6f3afb4b0a8806f
download
b7bf3a1d162e192993d913c08ac9b98fc13d1fe5.tar.gz

Haiku patch for bison 2.3.

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@24628 a95241bf-73f2-0310-859d-f6bbb57e9c96

Diff

 patches/bison/bison-2.3.diff | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/patches/bison/bison-2.3.diff b/patches/bison/bison-2.3.diff
new file mode 100644
index 0000000..d6b94c1 100644
--- /dev/null
+++ b/patches/bison/bison-2.3.diff
@@ -1,0 +1,20 @@
--- bison-2.3-orig/lib/stdbool_.h	2006-01-26 13:31:49.000000000 +0000
+++ bison-2.3/lib/stdbool_.h	2008-03-28 05:24:05.000000000 +0000
@@ -55,7 +55,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__
+#if defined(__BEOS__) && !defined(__HAIKU__)
 # include <OS.h> /* defines bool but not _Bool */
 # undef false
 # undef true
@@ -70,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'.  */
-#if defined __cplusplus || defined __BEOS__
+#if defined __cplusplus || (defined __BEOS__ && !defined(__HAIKU__))
   /* A compiler known to have 'bool'.  */
   /* If the compiler already has both 'bool' and '_Bool', we can assume they
      are the same types.  */