From: Steven Parkes Date: Mon, 14 Apr 1997 19:35:34 +0000 (-0700) Subject: Fix STMT_{START,END} under g++ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=169d69b2101f1566a86fde9666498d75598e84c5;p=p5sagit%2Fp5-mst-13.2.git Fix STMT_{START,END} under g++ Subject: perl.h with g++ (97b) ({}) is not allowed in C++, so the STMT_START selection macro should be changed from # if defined(__GNUC__) && !defined(__STRICT_ANSI__) to # if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(__cplusplus) p5p-msgid: 199704141935.MAA11240@monterey.sierravista.com --- diff --git a/perl.h b/perl.h index f196eac..64561f0 100644 --- a/perl.h +++ b/perl.h @@ -37,7 +37,7 @@ * Trying to select a version that gives no warnings... */ #if !(defined(STMT_START) && defined(STMT_END)) -# if defined(__GNUC__) && !defined(__STRICT_ANSI__) +# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(__cplusplus) # define STMT_START (void)( /* gcc supports ``({ STATEMENTS; })'' */ # define STMT_END ) # else