summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2008-10-27 19:26:50 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2008-10-27 19:26:50 +0000
commit159e8d64637a3daadcbab30870860babbbe8e1c1 (patch)
treec2c48125f3d124656a4e61869a76d2ca81b02019 /x2p
parent61c26d184967d0f5f994e7ef94345fb0c7c72519 (diff)
downloadperl-159e8d64637a3daadcbab30870860babbbe8e1c1.tar.gz
Fix x2p, which was broken by #34598 with -DPERL_MEM_LOG.
p4raw-id: //depot/perl@34603
Diffstat (limited to 'x2p')
-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