summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x2p/a2p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/x2p/a2p.h b/x2p/a2p.h
index 750e153c60..6b6004c2da 100644
--- a/x2p/a2p.h
+++ b/x2p/a2p.h
@@ -151,6 +151,12 @@ char *strcpy(), *strcat();
#endif
#endif /* ! STANDARD_C */
+#ifdef __cplusplus
+# define PERL_EXPORT_C extern "C"
+#else
+# define PERL_EXPORT_C extern
+#endif
+
#ifdef VMS
# include "handy.h"
#else