Subject: [Boost-bugs] [Boost C++ Libraries] #6908: Compile error due to unprotected definitions of _WIN32_WINNT and WINVER
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-17 04:39:43
#6908: Compile error due to unprotected definitions of _WIN32_WINNT and WINVER
--------------------------------------------------------------------------------+
Reporter: dnave@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost Development Trunk | Severity: Problem
Keywords: Boost.Thread, msvc, compile error, WINVER, _WIN32_WINNT, _WIN32_IE |
--------------------------------------------------------------------------------+
Environment: Visual Studio 9 on Windows 7 SP1 64-bit (compiling for
32-bit)
Boost versions: at least 1.47.0, up to trunk
libs/thread/src/win32/thread.cpp defines _WIN32_WINNT and WINVER outside
of #ifndef/#endif, leading to a macro redefinition that results in a
compile error when _WIN32_IE is set to something other than 0x0600.
Specifically, this error prevents compiling Boost.Threads when defining
WINVER=_WIN32_WINNT=0x0601 for Windows 7, with _WIN32_IE=0x0700.
Suggested solutions: Unless there is some technical reason for redefining
them locally, these macros should either not be defined, or should be
protected by #ifndef/#endif pairs.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6908> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC