From 4305a3cef9b210541c3b88ab2fd03d787c3bca66 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 5 Aug 2012 10:15:08 +0000 Subject: [PATCH] #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 --- CHANGES.current | 4 ++++ Lib/perl5/noembed.h | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index f10ab79d0..ada7461ac 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.8 (in progress) =========================== +2012-08-05: wsfulton + [Perl] #3545877 - Don't undefine bool if defined by C99 stdbool.h - problem using + Perl 5.16 and later. + 2012-08-04: wsfulton Remove incorrect warning (314) about target language keywords which were triggered by using declarations and using directives. For example 'string' is a keyword in C#: 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 +