summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/XSUB.h b/XSUB.h
index 22805a02b0..13e5de4f59 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -4,7 +4,13 @@
# ifdef PERL_OBJECT
# define XS(name) void name(CV* cv, CPerlObj* pPerl)
# else
-# define XS(name) void name(CV* cv)
+# if defined(CYGWIN32) && defined(USE_DYNAMIC_LOADING)
+# define XS(name) __declspec(dllexport) void name(CV* cv)
+ extern struct _reent *_impure_ptr;
+ void impure_setup(struct _reent *_impure_ptrMain);
+# else
+# define XS(name) void name(CV* cv)
+# endif
# endif
#else
# define XS(name) void name(cv) CV* cv;