summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorMerijn Broeren <merijnb@iloquent.nl>2006-02-15 14:51:49 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-02-16 14:15:53 +0000
commit34659ad42c4b407f5dceb74f4005f299acd3ba46 (patch)
treed1a3462bbf6d8925667ba0f35419ba2cba5677bf /XSUB.h
parent55b5d70095e7b9679db373ca7ac72c1951b35a3c (diff)
downloadperl-34659ad42c4b407f5dceb74f4005f299acd3ba46.tar.gz
Problem compiling swigged c++ code with 5.8.8
Message-ID: <20060215125148.GA12535@brugman.iloquent.nl> p4raw-id: //depot/perl@27203
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/XSUB.h b/XSUB.h
index b7df5e29fd..9d4aae6249 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -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)