summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-04-02 07:40:06 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-04-02 07:40:06 +0000
commit452556bd982ce6bf30d3b6e67ca2efb006954f46 (patch)
tree4fba776472f0a6810464aaad89c6856fe2dbd625 /perl.h
parent23f6d120c5cb627da2de901261af9eec365eca16 (diff)
parent95f363667835e95a52a0dfcf729978805271e247 (diff)
downloadperl-452556bd982ce6bf30d3b6e67ca2efb006954f46.tar.gz
Integrate mainline
p4raw-id: //depot/perlio@15673
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index c6f01b0cc4..f499e7b455 100644
--- a/perl.h
+++ b/perl.h
@@ -131,7 +131,11 @@ struct perl_thread;
#endif
#ifdef HASATTRIBUTE
-# define PERL_UNUSED_DECL __attribute__((unused))
+# if defined(__GNUC__) && defined(__cplusplus)
+# define PERL_UNUSED_DECL
+# else
+# define PERL_UNUSED_DECL __attribute__((unused))
+# endif
#else
# define PERL_UNUSED_DECL
#endif