summaryrefslogtreecommitdiff
path: root/dev-perl/Bit-Vector/files/Bit-Vector-7.400.0-c23.patch
blob: a51e7d221fe1912619cd9673290340bd7ec97a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
https://bugs.gentoo.org/944355
https://rt.cpan.org/Public/Bug/Display.html?id=165142
--- a/ToolBox.h
+++ b/ToolBox.h
@@ -93,10 +93,19 @@ typedef  Z_longword         *Z_longwordp
     #elif PERL_DARWIN
         #define boolean bool
     #else
-	typedef int boolean;
-	#ifndef I_STDBOOL
-	    enum { false, true };
-	#endif
+        typedef int boolean;
+        #ifndef I_STDBOOL
+          #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+            #include <stdbool.h>
+          #else
+            #ifndef false
+              #define false 0
+            #endif
+            #ifndef true
+              #define true 1
+            #endif
+          #endif
+        #endif
     #endif
 #endif