Fix for cygwin symbol visibility - sometimes _WIN32 may be defined even on cygwin.

Fixes #4670.

[SVN r65530]
This commit is contained in:
John Maddock
2010-09-22 08:24:07 +00:00
parent dca79a5e17
commit c02ec6995d

View File

@ -115,7 +115,7 @@
// Dynamic shared object (DSO) and dynamic-link library (DLL) support
//
#if __GNUC__ >= 4
# if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
# if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && !defined(__CYGWIN__)
// All Win32 development environments, including 64-bit Windows and MinGW, define
// _WIN32 or one of its variant spellings. Note that Cygwin is a POSIX environment,
// so does not define _WIN32 or its variants.