From: Nicholas Clark Date: Thu, 18 Jun 2009 19:37:28 +0000 (+0100) Subject: Allow expand-macro.pl to expand macros in perl.h without pre-processor warnings. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4784c5e80ccedd3734ce162e02ed1c7e25e60c01;p=p5sagit%2Fp5-mst-13.2.git Allow expand-macro.pl to expand macros in perl.h without pre-processor warnings. --- diff --git a/Porting/expand-macro.pl b/Porting/expand-macro.pl index 34b76cb..ed8e188 100644 --- a/Porting/expand-macro.pl +++ b/Porting/expand-macro.pl @@ -57,7 +57,12 @@ my $sentinel = "$macro expands to"; print $out <<"EOF"; #include "EXTERN.h" #include "perl.h" -#include "$header" +EOF + +print qq{#include "$header"\n} + unless $header eq 'perl.h' or $header eq 'EXTERN.h'; + +print $out <<"EOF"; #line 4 "$sentinel" $macro$args EOF