--- a/src/server/util/atomic.h Thu Jan 26 17:23:11 2017 +0100 +++ b/src/server/util/atomic.h Thu Jan 26 18:53:52 2017 +0100 @@ -33,7 +33,7 @@ extern "C" { #endif -#ifdef __gnu_linux__ +#if defined(__gnu_linux__) || defined(WINDOWS) #define ws_atomic_inc32(intptr) __sync_fetch_and_add(intptr, 1) #define ws_atomic_dec32(intptr) __sync_fetch_and_sub(intptr, 1) @@ -51,6 +51,7 @@ #define ws_atomic_dec32(intptr) __sync_fetch_and_sub(intptr, 1) #define ws_atomic_add32(intptr, val) __sync_fetch_and_add(intptr, val) #define ws_atomic_sub32(intptr, val) __sync_fetch_and_sub(intptr, va + #else // use atomic.h #include <atomic.h>