24 Sep
2013
24 Sep
'13
9:03 a.m.
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. Kind regards, Frédéric