On Wed Jul 10 08:48:05 2024 +0000, Alfred Agrell wrote:
Better use InterlockedCompareExchange/etc, so you won't need to bump the C version. InterlockedAbc works fine from Unix-side code, we use them for futexes already, for example in https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/ntdll/unix/sync.c#L25...
There are advantages to using C11 - better error control in the code. But C11 ambiguously interprets some points of the standard, and C17 is the same as C11, but brings more clarity and is a bug fix for C11. Modern compilers use C17 when specifying C11.