summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorSteven Parkes <parkes@sierravista.com>1997-04-14 12:35:34 -0700
committerChip Salzenberg <chip@atlantic.net>1997-04-15 00:00:00 +1200
commit169d69b2101f1566a86fde9666498d75598e84c5 (patch)
tree3eeb4f4d69c4baccd55309b8317cac0ad06d170e /perl.h
parent70e481508b469f184f17bb3cb0a8a2ef022b89fb (diff)
downloadperl-169d69b2101f1566a86fde9666498d75598e84c5.tar.gz
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
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index f196eac960..64561f0e38 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