summaryrefslogtreecommitdiff
path: root/INTERN.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-28 18:40:19 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-28 18:40:19 +0000
commit5db1039675bdeda8d9e4e8a1462abefb8ede0419 (patch)
tree7c515c7e6015a6511561b5fe09ec25d580a66ac4 /INTERN.h
parent33079e286d5308155d46cf4f82350ddbb5b5ad95 (diff)
downloadperl-5db1039675bdeda8d9e4e8a1462abefb8ede0419.tar.gz
Win9x + GCC update from Benjamin Stuhl <sho_pi@hotmail.com>
p4raw-id: //depot/perl@4729
Diffstat (limited to 'INTERN.h')
-rw-r--r--INTERN.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/INTERN.h b/INTERN.h
index 118e47ca18..c2407f2bc9 100644
--- a/INTERN.h
+++ b/INTERN.h
@@ -27,11 +27,17 @@
# define EXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
# define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
#else
-# ifdef __cplusplus
-# define EXT
-# define dEXT
-# define EXTCONST extern const
-# define dEXTCONST const
+#ifdef WIN32
+# define EXT __declspec(dllexport)
+# define dEXT __declspec(dllexport)
+# define EXTCONST __declspec(dllexport) const
+# define dEXTCONST __declspec(dllexport) const
+#else
+#ifdef __cplusplus
+# define EXT
+# define dEXT
+# define EXTCONST extern const
+# define dEXTCONST const
#else
# define EXT
# define dEXT
@@ -39,6 +45,7 @@
# define dEXTCONST const
#endif
#endif
+#endif
#undef INIT
#define INIT(x) = x