From: Paul Marquess Date: Thu, 16 Apr 2009 08:55:53 +0000 (+0100) Subject: Build bzip2 witha C++ compiler X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76c8ecbc54b31e8777973e2fc92e1611ce7a4cb6;p=p5sagit%2Fp5-mst-13.2.git Build bzip2 witha C++ compiler --- diff --git a/ext/Compress-Raw-Bzip2/bzip2-src/bzip2.c b/ext/Compress-Raw-Bzip2/bzip2-src/bzip2.c index 3904107..011edfa 100644 --- a/ext/Compress-Raw-Bzip2/bzip2-src/bzip2.c +++ b/ext/Compress-Raw-Bzip2/bzip2-src/bzip2.c @@ -800,6 +800,11 @@ void ioError ( void ) } +#ifdef __cplusplus +extern "C" +{ +#endif + /*---------------------------------------------*/ static void mySignalCatcher ( IntNative n ) @@ -866,6 +871,9 @@ void mySIGSEGVorSIGBUScatcher ( IntNative n ) { cadvise(); cleanUpAndFail( 2 ); } } +#ifdef __cplusplus +} +#endif /*---------------------------------------------*/ static diff --git a/ext/Compress-Raw-Bzip2/bzip2-src/bzlib.c b/ext/Compress-Raw-Bzip2/bzip2-src/bzlib.c index facd2b8..c2d6f71 100644 --- a/ext/Compress-Raw-Bzip2/bzip2-src/bzlib.c +++ b/ext/Compress-Raw-Bzip2/bzip2-src/bzlib.c @@ -98,6 +98,11 @@ int bz_config_ok ( void ) /*---------------------------------------------------*/ +#ifdef __cplusplus +extern "C" +{ +#endif + static void* default_bzalloc ( void* opaque, Int32 items, Int32 size ) { @@ -111,6 +116,9 @@ void default_bzfree ( void* opaque, void* addr ) if (addr != NULL) free ( addr ); } +#ifdef __cplusplus +} +#endif /*---------------------------------------------------*/ static