summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorMattia Barbon <mbarbon@dsi.unive.it>2002-04-01 00:43:03 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-31 19:45:33 +0000
commit3da75212d6473762ab0ea93846197f4c22b03729 (patch)
tree3ee68a5e454ea0ce4a125921551c39db29b6d9e5 /perl.h
parent9f0ea43f5738413b6af96027fa302d5608cdcd50 (diff)
downloadperl-3da75212d6473762ab0ea93846197f4c22b03729.tar.gz
__attribute__ problems with g++
From: "Mattia Barbon" <mbarbon@dsi.unive.it> Message-ID: <3CA790F7.23864.27BD5B4@localhost> p4raw-id: //depot/perl@15635
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 e34ace3ac5..442935fca6 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