summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorAlexander Slobodeniuk <aslobodeniuk@fluendo.com>2024-05-14 23:30:56 +0200
committerAlexander Slobodeniuk <aslobodeniuk@fluendo.com>2024-05-14 23:38:31 +0200
commit0e3e688bed2321d2420be844731408cb7a6cc416 (patch)
tree9cb1e5ac73bb33dc4a7d1e5bee135428de901e1c /subprojects
parent64cac1ed99b8d455433d3bcb027db9b65e263c2f (diff)
systemclock: 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/gstreamer/-/merge_requests/6848>
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/gstreamer/gst/gstsystemclock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/subprojects/gstreamer/gst/gstsystemclock.c b/subprojects/gstreamer/gst/gstsystemclock.c
index 9dce497ede..2b02bddd3f 100644
--- a/subprojects/gstreamer/gst/gstsystemclock.c
+++ b/subprojects/gstreamer/gst/gstsystemclock.c
@@ -75,7 +75,7 @@ static LARGE_INTEGER performance_counter_frequency;
* to a simple memory read.
*/
#if defined __APPLE__ || defined G_OS_WIN32
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS)
+#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__)
#include <stdatomic.h>
typedef atomic_int gst_atomic_int;
@@ -112,11 +112,11 @@ gst_atomic_int_set_release (gst_atomic_int * x, gint val)
{
InterlockedOrRelease (x, 1);
}
-#else /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS) */
+#else /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__) */
typedef int gst_atomic_int;
#define gst_atomic_int_get_acquire(x) g_atomic_int_get(x)
#define gst_atomic_int_set_release(x, val) g_atomic_int_set(x, val)
-#endif /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS) */
+#endif /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_ATOMICS__) */
#endif /* defined __APPLE__ || defined G_OS_WIN32 */
/* priv_gst_clock_init: