summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-08-21 14:55:28 +0200
committerNicholas Clark <nick@ccl4.org>2011-08-21 14:55:28 +0200
commit45fef53488278d882a5b00bace266de60a7993e9 (patch)
tree8193068a77cbe3e8662c3299e05a218265092d2f /XSUB.h
parent94663e6b0c2060e492314126f4f83778d1fcded5 (diff)
downloadperl-45fef53488278d882a5b00bace266de60a7993e9.tar.gz
Fix C++ build following commit ab1478f7146843f7.
For C++, ab1478f7146843f7 inadvertently defined XS_INTERNAL as extern "C" static ... which C++ compilers rightfully choke on.
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/XSUB.h b/XSUB.h
index 5a5fc63358..f4623e97d4 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -144,7 +144,7 @@ is a lexical $_ in scope.
# else
# ifdef __cplusplus
# define XS_EXTERNAL(name) extern "C" XSPROTO(name)
-# define XS_INTERNAL(name) extern "C" STATIC XSPROTO(name)
+# define XS_INTERNAL(name) static XSPROTO(name)
# else
# define XS_EXTERNAL(name) XSPROTO(name)
# define XS_INTERNAL(name) STATIC XSPROTO(name)