Skip to content
Snippets Groups Projects
Commit 474fa66e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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>
parent 61c0a8b2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1396 passed
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#if !__STDC_NO_ATOMICS__ #if !__STDC_NO_ATOMICS__
#if defined __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9)) #if defined __GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9))
#define __STDC_NO_ATOMICS__ 1 #define __STDC_NO_ATOMICS__ 1
#elif defined __BORLANDC__ #elif defined __BORLANDC__ || defined _MSC_VER
#define __STDC_NO_ATOMICS__ 1 #define __STDC_NO_ATOMICS__ 1
#endif #endif
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment