id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4678,VS2010 intrin.h not compatible with interlocked.hpp,yuehuang ,Peter Dimov,"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",Bugs,closed,To Be Determined,smart_ptr,Boost 1.44.0,Problem,fixed,Intrin.h Interlocked.hpp,