SWIG uses XS() like this (in the perlrun.swg template):
authorAbhijit Menon-Sen <ams@wiw.org>
Fri, 10 Aug 2007 05:42:26 +0000 (05:42 +0000)
committerAbhijit Menon-Sen <ams@wiw.org>
Fri, 10 Aug 2007 05:42:26 +0000 (05:42 +0000)
commit081304cacec6bce6f35c552d790a2bd93a6cda31
tree5437fad16f01a45e07412b7ab8a1ed54a7644c79
parent94e93a7aa11773f80f2c4abf1f3e9c73e11090bf
SWIG uses XS() like this (in the perlrun.swg template):

typedef XS(SwigPerlWrapper);
typedef SwigPerlWrapper *SwigPerlWrapperPtr;

This breaks if XS() includes the 'extern "C"' decoration under C++.
The appended patch provides an XSPROTO() macro that could be used
by SWIG instead.

(Patch from Jan Dubois to fix breakage caused by #28734.)

p4raw-id: //depot/perl@31697
XSUB.h