From a40fa0492fc093267f737d6574676fe3be06aded Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Mon, 22 Feb 2021 17:58:44 -0800 Subject: [PATCH] Gotta define __STDC_NO_ATOMICS__ for MSVC Even though https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160 says they define it for C compiles, apparently they don't bother for C++. <shrug> --- src/xpdev/threadwrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xpdev/threadwrap.h b/src/xpdev/threadwrap.h index 592d0d839a..1383d18fd7 100644 --- a/src/xpdev/threadwrap.h +++ b/src/xpdev/threadwrap.h @@ -43,7 +43,7 @@ #if !__STDC_NO_ATOMICS__ #if defined __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9)) #define __STDC_NO_ATOMICS__ 1 - #elif defined __BORLANDC__ + #elif defined __BORLANDC__ || defined _MSC_VER #define __STDC_NO_ATOMICS__ 1 #endif #endif -- GitLab