summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 0aee7d8..24bb3b0 100644
--- a/defines.h
+++ b/defines.h
@@ -125,7 +125,7 @@ void xfree _((void*));
#endif
#undef RUBY_EXTERN
-#if defined __CYGWIN__ || defined _WIN32
+#if defined _WIN32 && !defined __GNUC__
# ifndef RUBY_EXPORT
# define RUBY_EXTERN extern __declspec(dllimport)
# endif