Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65530 - trunk/boost/config/compiler
From: john_at_[hidden]
Date: 2010-09-22 04:24:09


Author: johnmaddock
Date: 2010-09-22 04:24:07 EDT (Wed, 22 Sep 2010)
New Revision: 65530
URL: http://svn.boost.org/trac/boost/changeset/65530

Log:
Fix for cygwin symbol visibility - sometimes _WIN32 may be defined even on cygwin.
Fixes #4670.
Text files modified:
   trunk/boost/config/compiler/gcc.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/config/compiler/gcc.hpp
==============================================================================
--- trunk/boost/config/compiler/gcc.hpp (original)
+++ trunk/boost/config/compiler/gcc.hpp 2010-09-22 04:24:07 EDT (Wed, 22 Sep 2010)
@@ -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.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk