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
[perl5.git] / EXTERN.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)