From: Mattia Barbon Date: Sun, 31 Mar 2002 22:43:03 +0000 (+0200) Subject: __attribute__ problems with g++ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3da75212d6473762ab0ea93846197f4c22b03729;p=p5sagit%2Fp5-mst-13.2.git __attribute__ problems with g++ From: "Mattia Barbon" Message-ID: <3CA790F7.23864.27BD5B4@localhost> p4raw-id: //depot/perl@15635 --- diff --git a/perl.h b/perl.h index e34ace3..442935f 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