I do not know if this will be appropriate in mingw-w64. mingw-w64 imports some header file from wine project for the widl tool. In the mingw-w64-tools/widl/include/winnt.h file[1], there is a definition of InterlockedCompareExchange128 function with inline assembly. Would you like to check if that works with your project?
[1]: Link https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-tools/widl/include/winnt.h _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public