1 $NetBSD: patch-aq,v 1.2 2008/10/10 21:58:43 he Exp $
3 --- XSUB.h.orig 2007-12-18 11:47:07.000000000 +0100
5 @@ -94,6 +94,9 @@ is a lexical $_ in scope.
6 #ifndef PERL_UNUSED_VAR
7 # define PERL_UNUSED_VAR(x) ((void)x)
9 +#ifndef PERL_UNUSED_DECL
10 +# define PERL_UNUSED_DECL
13 #define ST(off) PL_stack_base[ax + (off)]
15 @@ -117,15 +120,7 @@ is a lexical $_ in scope.
16 # define XS(name) EXPORT_C XSPROTO(name)
19 -# if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
20 -# define XS(name) void name(pTHX_ CV* cv __attribute__unused__)
23 -# define XS(name) extern "C" XSPROTO(name)
25 -# define XS(name) XSPROTO(name)
28 +# define XS(name) void name(pTHX_ CV* cv PERL_UNUSED_DECL)
31 #define dAX const I32 ax = (I32)(MARK - PL_stack_base + 1)