From cfc3780a9cee71ec977bc7416a5663bb8e21d4a9 Mon Sep 17 00:00:00 2001 From: Alexander Slobodeniuk Date: Tue, 14 May 2024 23:41:35 +0200 Subject: once: fix usage of __STDC_NO_ATOMICS__ __STDC_NO_ATOMICS doesn't seem to exist. In fact the only compiler I've found that sets any of those is msvc, but it sets __STDC_NO_ATOMICS__, not __STDC_NO_ATOMICS. __STDC_NO_ATOMICS__ is the one documented by C11 standard. Part-of: --- orc/orconce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orc/orconce.h b/orc/orconce.h index abf3720..2be3623 100644 --- a/orc/orconce.h +++ b/orc/orconce.h @@ -5,7 +5,7 @@ #include #include -#if (!defined(_MSC_VER) || defined(__clang__)) && !defined(__STDC_NO_ATOMICS) +#if (!defined(_MSC_VER) || defined(__clang__)) && !defined(__STDC_NO_ATOMICS__) // For MSVC, we need the Win32-based version, as C11 atomics // end up preferring the actually more unlikely jump -- therefore // triplicating the number of memory accesses. -- cgit v1.2.3