summaryrefslogtreecommitdiff
path: root/EXTERN.h
diff options
context:
space:
mode:
Diffstat (limited to 'EXTERN.h')
-rw-r--r--EXTERN.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/EXTERN.h b/EXTERN.h
index 91c8d4a023..ec062ee721 100644
--- a/EXTERN.h
+++ b/EXTERN.h
@@ -30,10 +30,17 @@
# define EXTCONST __declspec(dllexport) const
# define dEXTCONST const
# else
-# define EXT __declspec(dllimport)
-# define dEXT
-# define EXTCONST __declspec(dllimport) const
-# define dEXTCONST const
+# 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
# endif
# else
# define EXT extern