
3 Aug
2012
3 Aug
'12
5:58 p.m.
[Sergey Cheban]
Why is neccessary to include the windows headers at all? Intrin.h seems to be enough: it declares _InterlockedCompareExchange and some other useful intrinics, and it does not use the winapi-related stuff.
FYI, VC11's <atomic> includes <intrin.h>. Works fine for us. (Note, however, that it was very problematic to get the STL to drag in <intrin.h> in VC9. Those bugs were fixed in VC10. Although we have the luxury of targeting a single version, you might care.) Stephan T. Lavavej Visual C++ Libraries Developer