summaryrefslogtreecommitdiff
path: root/perl.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 /perl.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 'perl.h')
-rw-r--r--perl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index dccbf014f1..6f9f966a74 100644
--- a/perl.h
+++ b/perl.h
@@ -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