summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2011-12-01 19:00:53 +1100
committerTony Cook <tony@develop-help.com>2011-12-01 19:18:22 +1100
commitfe6ca73739d497d2f05e6d96f47b3d079fdc88fc (patch)
tree6db6d84010473cf5ae97abf413e59778f79daaf9 /XSUB.h
parent83504ee4bca9923131c46e631589a42c101dde7a (diff)
downloadperl-fe6ca73739d497d2f05e6d96f47b3d079fdc88fc.tar.gz
static and dllexport don't belong together on cygwin
This was causing build errors like: Cwd.c:553:1: error: external linkage required for symbol ‘XS_Cwd_getcwd’ because of ‘dllexport’ attribute
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 61d0ef2ba2..4e439f17fe 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -130,7 +130,7 @@ is a lexical $_ in scope.
#undef XS_INTERNAL
#if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
# define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
-# define XS_INTERNAL(name) __declspec(dllexport) STATIC XSPROTO(name)
+# define XS_INTERNAL(name) STATIC XSPROTO(name)
#endif
#if defined(__SYMBIAN32__)
# define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)