1 Change 27203 by rgs@stencil on 2006/02/16 14:15:53
3 Subject: Problem compiling swigged c++ code with 5.8.8
4 From: Merijn Broeren <merijnb@iloquent.com>
5 Date: Wed, 15 Feb 2006 13:51:49 +0100
6 Message-ID: <20060215125148.GA12535@brugman.iloquent.nl>
10 ... //depot/perl/XSUB.h#103 edit
11 ... //depot/perl/perl.h#665 edit
15 --- perl.h 2006/02/12 00:10:22 19541
16 +++ perl.h 2006/02/16 22:15:53 19572
20 #ifndef PERL_UNUSED_DECL
21 -# ifdef HASATTRIBUTE_UNUSED
22 +# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
23 # define PERL_UNUSED_DECL __attribute__unused__
25 # define PERL_UNUSED_DECL
26 --- XSUB.h 2006/02/02 22:24:03 19447
27 +++ XSUB.h 2006/02/16 22:15:53 19572
29 #if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
30 # define XS(name) __declspec(dllexport) void name(pTHX_ CV* cv)
32 -# ifdef HASATTRIBUTE_UNUSED
33 +# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
34 # define XS(name) void name(pTHX_ CV* cv __attribute__unused__)
36 # define XS(name) void name(pTHX_ CV* cv)