[Boost-bugs] [Boost C++ Libraries] #4678: VS2010 intrin.h not compatible with interlocked.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #4678: VS2010 intrin.h not compatible with interlocked.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-22 23:10:53


#4678: VS2010 intrin.h not compatible with interlocked.hpp
-----------------------------------------------+----------------------------
 Reporter: yuehuang <yuehuang@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: Intrin.h Interlocked.hpp |
-----------------------------------------------+----------------------------
 A customer has openned an
 [http://connect.microsoft.com/VisualStudio/feedback/details/584418
 /different-intrinsic-functions-are-declared-with-different-calling-
 conventions Micrsoft Connect] bug for the compatibility of VS2010 and
 Boost. The user states that including intrin.h and
 boost\detail\interlocked.hpp whiling passing fastcall or stdcall switch to
 the compiler, the compiler would generate an redefinition error.
 {{{
 d:\boost\boost_1_44_0\boost\detail\interlocked.hpp(61): error C2373:
 '_InterlockedCompareExchange' : redefinition; different type modifiers
        c:\program files (x86)\microsoft visual studio
 10.0\vc\include\intrin.h(214) : see declaration of
 '_InterlockedCompareExchange'
 }}}
 In VS2010, intrin.h has changed to match calling convention that of
 WinBase.h.

 Would defining BOOST_USE_WINDOWS_H workaround the issue?

 Thanks

 Felix

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4678>
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