Re: [Boost-bugs] [Boost C++ Libraries] #4849: MinGW-64: detail/interlocked.hpp chooses wrong prototypes for InterlockedCompareExchange et al

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4849: MinGW-64: detail/interlocked.hpp chooses wrong prototypes for InterlockedCompareExchange et al
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-01 23:52:39


#4849: MinGW-64: detail/interlocked.hpp chooses wrong prototypes for
InterlockedCompareExchange et al
-----------------------------------------+----------------------------------
  Reporter: Jim Bell <jim@…> | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: Boost 1.46.0 | Component: smart_ptr
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: mingw64 InterlockedCompareExchange once.hpp thread.cpp
-----------------------------------------+----------------------------------

Comment (by anonymous):

 Yes. Moving #include <windows.h> below all other includes DOES correct the
 above "_Interlocked..." errors above.

 I'm attaching a patch that shows this, and also a couple other related
 MinGW-64 patches that might be helpful. Review it carefully.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4849#comment:7>
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:04 UTC