This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
cygwin32 update (untested adaptation of patch against 5.005_03)
[perl5.git] / EXTERN.h
index 66aeb9f..1aa89e6 100644 (file)
--- a/EXTERN.h
+++ b/EXTERN.h
 #      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