Fix x2p, which was broken by #34598 with -DPERL_MEM_LOG.
Marcus Holland-Moritz [Mon, 27 Oct 2008 19:26:50 +0000 (19:26 +0000)]
p4raw-id: //depot/perl@34603

x2p/a2p.h

index 750e153..6b6004c 100644 (file)
--- 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