diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-10-30 05:37:43 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-10-30 21:35:22 -0700 |
commit | f789f6a4bdb5024b90845e6af62510d7f23eea5d (patch) | |
tree | 9e51aeeb7f8257fe1c923aeffb7094e952f63b83 /perl.h | |
parent | 7c688e65ecedd74107c7644e197efae4ca42ea0e (diff) | |
download | perl-f789f6a4bdb5024b90845e6af62510d7f23eea5d.tar.gz |
Introduce PERL_BOOL_AS_CHAR define
This allows compilers that do support real booleans (C++ or anything
with stdbool.h) to emulate those that don’t.
See ticket #120314.
This patch incorporates suggestions from Craig Berry.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2298,6 +2298,13 @@ typedef SV PADNAME; # define PERL_SAWAMPERSAND #endif +/* Include mach-o/dyld.h here for perl.c’s sake, since it may #define bool, + and handy.h needs to be able to re#define it under + -Accflags=-DPERL_BOOL_AS_CHAR. */ +#if defined(USE_NSGETEXECUTABLEPATH) && defined(PERL_IN_PERL_C) +# include <mach-o/dyld.h> +#endif + #include "handy.h" #if defined(USE_LARGE_FILES) && !defined(NO_64_BIT_RAWIO) |