Skip Menu |

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

Report information
The Basics
Id: 76425
Status: open
Priority: 0/
Queue: Date-Calc-XS

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

Bug Information
Severity: (no value)
Broken in: 6.2
Fixed in: (no value)



Subject: Does not compile anymore for bleadperl (5.15.3 and newer)
When trying to compile the module with bleadperl (perl 5.15.3 or newer) there's an error: ToolBox.h:96:24: error: expected identifier before numeric constant Here's a sample test report: http://www.cpantesters.org/cpan/report/e93e4db6-7f30-11e1-bc8b-21f0163997d5 And here's the test report overview: http://matrix.cpantesters.org/?dist=Date-Calc-XS-6.2 I saw a similar error in another ticket, see here: https://rt.cpan.org/Ticket/Display.html?id=76413 Regards, Slaven
It has been predicted that D:C:XS would be affected but I did not read it. The following patch works: diff -u ../Date-Calc-XS-6.2-cilRaP~/ToolBox.h ../Date-Calc-XS-6.2-cilRaP/ToolBox.h --- ../Date-Calc-XS-6.2-cilRaP~/ToolBox.h 2009-10-16 23:47:55.000000000 +0200 +++ ../Date-Calc-XS-6.2-cilRaP/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 Tested with v5.15.2-436-gbd31be4 and v5.15.9-123-gbd9cbc4