diff options
author | Steven Parkes <parkes@sierravista.com> | 1997-04-14 12:35:34 -0700 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-04-15 00:00:00 +1200 |
commit | 169d69b2101f1566a86fde9666498d75598e84c5 (patch) | |
tree | 3eeb4f4d69c4baccd55309b8317cac0ad06d170e /perl.h | |
parent | 70e481508b469f184f17bb3cb0a8a2ef022b89fb (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |