summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Slobodeniuk <aslobodeniuk@fluendo.com>2024-05-14 23:41:35 +0200
committerSebastian Dröge <sebastian@centricular.com>2024-05-15 09:16:53 +0300
commitcfc3780a9cee71ec977bc7416a5663bb8e21d4a9 (patch)
tree9e115b82c9e1e3f0a5bb1c7f6517328b5434931d
parent442a4483976741dc5c76dff4ee49e4d1ceeb58ae (diff)
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: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/182>
-rw-r--r--orc/orconce.h2
1 files changed, 1 insertions, 1 deletions
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 <orc/orcutils.h>
#include <orc/orcdebug.h>
-#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.