Alfred Agrell (@Alcaro) commented about dlls/winewayland.drv/waylanddrv.h:
/* We only use 4 byte formats. */ #define WINEWAYLAND_BYTES_PER_PIXEL 4
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L +#if defined(__STDC_NO_ATOMICS__) +# error C11 Atomic Operations not support. +#else +#include <stdatomic.h>
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...