summaryrefslogtreecommitdiff
path: root/INTERN.h
diff options
context:
space:
mode:
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