24 Sep
2013
24 Sep
'13
12:51 p.m.
On Tue, Sep 24, 2013 at 1:03 PM, Frédéric Bron
Yes, MinGW-w64 defines _Interlocked* functions in terms of gcc intrinsics internally, in intrin.h. This header is only available in MinGW-w64 and not MinGW (the original project). Considering all that I prepared a patch for interlocked.hpp (attached, the patch is against trunk).
Just tested your patch with both i686-w64-mingw32-g++ and x86_64-w64-mingw32-g++. Works nicely, you can apply the patch.
Committed to trunk. I will merge the change to release as soon as the tests pass. Thank you for reporting the issue and trying out the patch.