summaryrefslogtreecommitdiff
path: root/EXTERN.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-08-27 15:57:39 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-08-27 15:57:39 +0000
commitadceae88f516db14056f3ad2cf86787cab37ecd7 (patch)
treebebc695b64684ebb7049212faf79fe165ade80e6 /EXTERN.h
parent3b5b112528953358a7e9f7cf245ff713d96cd972 (diff)
downloadperl-adceae88f516db14056f3ad2cf86787cab37ecd7.tar.gz
More conditional defines of EXTERN_C, by Jarkko
p4raw-id: //depot/perl@28763
Diffstat (limited to 'EXTERN.h')
-rw-r--r--EXTERN.h8
1 files changed, 8 insertions, 0 deletions
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)