From: Rafael Garcia-Suarez Date: Sun, 27 Aug 2006 15:57:39 +0000 (+0000) Subject: More conditional defines of EXTERN_C, by Jarkko X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=adceae88f516db14056f3ad2cf86787cab37ecd7;p=p5sagit%2Fp5-mst-13.2.git More conditional defines of EXTERN_C, by Jarkko p4raw-id: //depot/perl@28763 --- diff --git a/EXTERN.h b/EXTERN.h index 58ca37a..a9a5644 100644 --- a/EXTERN.h +++ b/EXTERN.h @@ -55,6 +55,14 @@ # endif #endif +#ifndef EXTERN_C +# ifdef __cplusplus +# define EXTERN_C extern "C" +# else +# define EXTERN_C extern +# endif +#endif + #undef INIT #define INIT(x) diff --git a/INTERN.h b/INTERN.h index da3057a..206d56e 100644 --- a/INTERN.h +++ b/INTERN.h @@ -48,6 +48,14 @@ # endif #endif +#ifndef EXTERN_C +# ifdef __cplusplus +# define EXTERN_C extern "C" +# else +# define EXTERN_C extern +# endif +#endif + #undef INIT #define INIT(x) = x