From 5db1039675bdeda8d9e4e8a1462abefb8ede0419 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Tue, 28 Dec 1999 18:40:19 +0000 Subject: Win9x + GCC update from Benjamin Stuhl p4raw-id: //depot/perl@4729 --- INTERN.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'INTERN.h') 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 -- cgit v1.2.1