On Mon Apr 09 08:37:20 2012, ANDK wrote:
Show quoted text
Attached is a patch which works for me (tm) on CentOS 6.5, perl 5.16.2.
diff -ru Date-Pcalc-6.1.orig/src/C_XS/ToolBox.h Date-Pcalc-6.1/src/C_XS/ToolBox.h
--- Date-Pcalc-6.1.orig/src/C_XS/ToolBox.h 2009-10-15 12:31:02.000000000 -0400
+++ Date-Pcalc-6.1/src/C_XS/ToolBox.h 2014-05-13 14:41:23.000000000 -0400
@@ -88,13 +88,18 @@
#ifdef __cplusplus
typedef bool boolean;
#else
+ #ifndef I_STDBOOL
#ifdef MACOS_TRADITIONAL
#define boolean Boolean
#elif PERL_DARWIN
#define boolean bool
#else
- typedef enum { false = FALSE, true = TRUE } boolean;
+ typedef int boolean;
+ enum { false, true };
#endif
+ #else
+ typedef int boolean;
+ #endif /* I_STDBOOL */
#endif
#define and && /* logical (boolean) operators: lower case */