diff options
author | Merijn Broeren <merijnb@iloquent.nl> | 2006-02-15 14:51:49 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-02-16 14:15:53 +0000 |
commit | 34659ad42c4b407f5dceb74f4005f299acd3ba46 (patch) | |
tree | d1a3462bbf6d8925667ba0f35419ba2cba5677bf | |
parent | 55b5d70095e7b9679db373ca7ac72c1951b35a3c (diff) | |
download | perl-34659ad42c4b407f5dceb74f4005f299acd3ba46.tar.gz |
Problem compiling swigged c++ code with 5.8.8
Message-ID: <20060215125148.GA12535@brugman.iloquent.nl>
p4raw-id: //depot/perl@27203
-rw-r--r-- | XSUB.h | 2 | ||||
-rw-r--r-- | perl.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -104,7 +104,7 @@ is a lexical $_ in scope. # define XS(name) EXPORT_C void name(pTHX_ CV* cv) #endif #ifndef XS -# ifdef HASATTRIBUTE_UNUSED +# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus) # define XS(name) void name(pTHX_ CV* cv __attribute__unused__) # else # define XS(name) void name(pTHX_ CV* cv) @@ -211,7 +211,7 @@ #endif #ifndef PERL_UNUSED_DECL -# ifdef HASATTRIBUTE_UNUSED +# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus) # define PERL_UNUSED_DECL __attribute__unused__ # else # define PERL_UNUSED_DECL |