1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: ANDK@cpan.org
Subject: The infamous boolean subtelty needed for perl 5.16
It has been predicted that D:C:XS would be affected but I did not read
it. The following patch works:
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=76442
Bug-Debian: https://bugs.debian.org/676270
Origin: https://rt.cpan.org/Public/Bug/Display.html?id=76425
--- a/src/C_XS/ToolBox.h 2009-10-16 23:47:55.000000000 +0200
+++ b/src/C_XS/ToolBox.h 2012-04-09 14:27:56.116897462 +0200
@@ -93,7 +93,10 @@
#elif PERL_DARWIN
#define boolean bool
#else
- typedef enum { false = FALSE, true = TRUE } boolean;
+ typedef int boolean;
+ #ifndef I_STDBOOL
+ enum { false, true };
+ #endif
#endif
#endif
|