From adceae88f516db14056f3ad2cf86787cab37ecd7 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Sun, 27 Aug 2006 15:57:39 +0000 Subject: More conditional defines of EXTERN_C, by Jarkko p4raw-id: //depot/perl@28763 --- EXTERN.h | 8 ++++++++ INTERN.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/EXTERN.h b/EXTERN.h index 58ca37a47f..a9a56448f5 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 da3057a83c..206d56e56e 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 -- cgit v1.2.1