summaryrefslogtreecommitdiff
path: root/EXTERN.h
diff options
context:
space:
mode:
Diffstat (limited to 'EXTERN.h')
-rw-r--r--EXTERN.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/EXTERN.h b/EXTERN.h
index ec062ee721..228ed52406 100644
--- a/EXTERN.h
+++ b/EXTERN.h
@@ -23,24 +23,17 @@
# define EXTCONST globalref
# define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
#else
-# if defined(_MSC_VER) && defined(_WIN32)
+# if (defined(_MSC_VER) && defined(_WIN32)) || (defined(__BORLANDC__) && defined(__WIN32__))
# ifdef PERLDLL
-# define EXT __declspec(dllexport)
+# define EXT extern __declspec(dllexport)
# define dEXT
-# define EXTCONST __declspec(dllexport) const
+# define EXTCONST extern __declspec(dllexport) const
# define dEXTCONST const
# else
-# if defined(__cplusplus)
-# define EXT extern __declspec(dllimport)
-# define dEXT
-# define EXTCONST extern __declspec(dllimport) const
-# define dEXTCONST const
-# else
-# define EXT __declspec(dllimport)
-# define dEXT
-# define EXTCONST __declspec(dllimport) const
-# define dEXTCONST const
-# endif
+# define EXT extern __declspec(dllimport)
+# define dEXT
+# define EXTCONST extern __declspec(dllimport) const
+# define dEXTCONST const
# endif
# else
# define EXT extern