SOURCES: perl_588-27203.patch (NEW) - fix for problem compiling sw...

hawk hawk at pld-linux.org
Sat Apr 15 23:57:33 CEST 2006


Author: hawk                         Date: Sat Apr 15 21:57:33 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for problem compiling swigged c++ code with perl 5.8.8

---- Files affected:
SOURCES:
   perl_588-27203.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/perl_588-27203.patch
diff -u /dev/null SOURCES/perl_588-27203.patch:1.1
--- /dev/null	Sat Apr 15 23:57:33 2006
+++ SOURCES/perl_588-27203.patch	Sat Apr 15 23:57:27 2006
@@ -0,0 +1,36 @@
+Change 27203 by rgs at stencil on 2006/02/16 14:15:53
+
+	Subject: Problem compiling swigged c++ code with 5.8.8
+	From: Merijn Broeren <merijnb at iloquent.com>
+	Date: Wed, 15 Feb 2006 13:51:49 +0100
+	Message-ID: <20060215125148.GA12535 at brugman.iloquent.nl>
+
+Affected files ...
+
+... //depot/perl/XSUB.h#103 edit
+... //depot/perl/perl.h#665 edit
+
+Differences ...
+
+--- perl.h	2006/02/12 00:10:22	19541
++++ perl.h	2006/02/16 22:15:53	19572
+@@ -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
+--- XSUB.h	2006/02/02 22:24:03	19447
++++ XSUB.h	2006/02/16 22:15:53	19572
+@@ -91,7 +91,7 @@
+ #if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
+ #  define XS(name) __declspec(dllexport) void name(pTHX_ CV* cv)
+ #else
+-#  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)
================================================================


More information about the pld-cvs-commit mailing list