summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-10-30 05:37:43 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-10-30 21:35:22 -0700
commitf789f6a4bdb5024b90845e6af62510d7f23eea5d (patch)
tree9e51aeeb7f8257fe1c923aeffb7094e952f63b83 /perl.h
parent7c688e65ecedd74107c7644e197efae4ca42ea0e (diff)
downloadperl-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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index dc140bdfcf..0a8beda7d0 100644
--- a/perl.h
+++ b/perl.h
@@ -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)