This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
More conditional defines of EXTERN_C, by Jarkko
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 27 Aug 2006 15:57:39 +0000 (15:57 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Sun, 27 Aug 2006 15:57:39 +0000 (15:57 +0000)
p4raw-id: //depot/perl@28763

EXTERN.h
INTERN.h

index 58ca37a..a9a5644 100644 (file)
--- a/EXTERN.h
+++ b/EXTERN.h
 #  endif
 #endif
 
+#ifndef EXTERN_C
+#  ifdef __cplusplus
+#    define EXTERN_C extern "C"
+#  else
+#    define EXTERN_C extern
+#  endif
+#endif
+
 #undef INIT
 #define INIT(x)
 
index da3057a..206d56e 100644 (file)
--- a/INTERN.h
+++ b/INTERN.h
 #  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