diff options
Diffstat (limited to 'INTERN.h')
-rw-r--r-- | INTERN.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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 |