diff options
author | Mattia Barbon <mbarbon@dsi.unive.it> | 2002-04-01 00:43:03 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-31 19:45:33 +0000 |
commit | 3da75212d6473762ab0ea93846197f4c22b03729 (patch) | |
tree | 3ee68a5e454ea0ce4a125921551c39db29b6d9e5 /perl.h | |
parent | 9f0ea43f5738413b6af96027fa302d5608cdcd50 (diff) | |
download | perl-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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |