From c02ec6995d15e70ed83136a227b47e8b3c0d4b58 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 22 Sep 2010 08:24:07 +0000 Subject: [PATCH] Fix for cygwin symbol visibility - sometimes _WIN32 may be defined even on cygwin. Fixes #4670. [SVN r65530] --- include/boost/config/compiler/gcc.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index e1c33e0c..eeaf9982 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -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.