diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2012-08-05 10:15:08 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2012-08-05 10:15:08 +0000 |
commit | 4305a3cef9b210541c3b88ab2fd03d787c3bca66 (patch) | |
tree | 6a1a59438754b5ec04f3f76f9f54e0a27db78948 /Lib/perl5/noembed.h | |
parent | db0f2d7a8e2d3be72b39fa5a1487af1615cdfabb (diff) | |
download | swig-4305a3cef9b210541c3b88ab2fd03d787c3bca66.tar.gz |
#3545877 - Don't undefine bool if defined by C99 stdbool.h - problem using Perl 5.16 and later.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/perl5/noembed.h')
-rw-r--r-- | Lib/perl5/noembed.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Lib/perl5/noembed.h b/Lib/perl5/noembed.h index 27e510df1..936d50ba6 100644 --- a/Lib/perl5/noembed.h +++ b/Lib/perl5/noembed.h @@ -64,9 +64,6 @@ #ifdef eof #undef eof #endif -#ifdef bool - #undef bool -#endif #ifdef close #undef close #endif @@ -106,3 +103,11 @@ #ifdef stat #undef stat #endif + +#ifdef bool + /* Leave if macro is from C99 stdbool.h */ + #ifndef __bool_true_false_are_defined + #undef bool + #endif +#endif + |