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 66aeb9f652..1aa89e69da 100644
--- a/EXTERN.h
+++ b/EXTERN.h
@@ -40,10 +40,17 @@
# define dEXTCONST const
# endif
# else
-# define EXT extern
-# define dEXT
-# define EXTCONST extern const
-# define dEXTCONST const
+# if defined(CYGWIN32) && defined(USEIMPORTLIB)
+# define EXT extern __declspec(dllimport)
+# define dEXT
+# define EXTCONST extern __declspec(dllimport) const
+# define dEXTCONST const
+# else
+# define EXT extern
+# define dEXT
+# define EXTCONST extern const
+# define dEXTCONST const
+# endif
# endif
#endif