Skip Menu |
 

This queue is for tickets about the Date-Pcalc CPAN distribution.

Report information
The Basics
Id: 76442
Status: open
Priority: 0/
Queue: Date-Pcalc

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 6.1
Fixed in: (no value)



Download (untitled) / with headers
text/plain 151b
The very same patch as the one I just posted for Date::Calc::XS can also be applied for Date::Pcalc https://rt.cpan.org/Ticket/Display.html?id=76425
Download (untitled) / with headers
text/plain 275b
On Mon Apr 09 08:37:20 2012, ANDK wrote: Show quoted text
> The very same patch as the one I just posted for Date::Calc::XS can also > be applied for Date::Pcalc > > https://rt.cpan.org/Ticket/Display.html?id=76425 >
Attached is a patch which works for me (tm) on CentOS 6.5, perl 5.16.2.
Subject: Date-Pcalc-6.1.patch
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 */


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.