summaryrefslogtreecommitdiff
path: root/INTERN.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 /INTERN.h
parent3b5b112528953358a7e9f7cf245ff713d96cd972 (diff)
downloadperl-adceae88f516db14056f3ad2cf86787cab37ecd7.tar.gz
More conditional defines of EXTERN_C, by Jarkko
p4raw-id: //depot/perl@28763
Diffstat (limited to 'INTERN.h')
-rw-r--r--INTERN.h8
1 files changed, 8 insertions, 0 deletions
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