Try to treat .xs files as C++ rather than C in your module.
This module can be used to compile C++ XS files. It might not be perfect, but is meant aa single point that needs patching, so other modules who rely on it do not have to be pqatched every single time.
CPAN | File Releases (CPAN) |
CVS | Browsable CVS module 'ExtUtils-CXX' |
CVS | Anonymous CVS: cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co ExtUtils-CXX |
METACPAN | MetaCPAN page |
LIST | Mailing List 'perl' |
IRC | Server irc.schmorp.de, channel #schmorpforge, user schmorp (say hi and wait a few minutes or hours, or /msg schmorp directly)) |
POD | Main Manual Page |
FILE | Changes |