From 5e30aa291c2c68ccced0b6a1f449aed1894f01c4 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Sun, 13 Apr 2025 20:35:52 +0200 Subject: [PATCH] yes --- Sources/Backends/Software/Soft.c | 2 +- Sources/Backends/WebGPU/WebGPU.c | 2 +- Sources/MsvcAtomicsCompat.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Backends/Software/Soft.c b/Sources/Backends/Software/Soft.c index 3af0c69..8049b45 100644 --- a/Sources/Backends/Software/Soft.c +++ b/Sources/Backends/Software/Soft.c @@ -7,7 +7,7 @@ #include #include "../../PulseInternal.h" -#ifdef __STDC_NO_ATOMICS__ +#if defined(__STDC_NO_ATOMICS__) && !defined(ATOMICS_OVERLOAD) #error "Atomic support is not present" #endif diff --git a/Sources/Backends/WebGPU/WebGPU.c b/Sources/Backends/WebGPU/WebGPU.c index 20df9c3..9a78d3a 100644 --- a/Sources/Backends/WebGPU/WebGPU.c +++ b/Sources/Backends/WebGPU/WebGPU.c @@ -5,7 +5,7 @@ #include #include "../../PulseInternal.h" -#ifdef __STDC_NO_ATOMICS__ +#if defined(__STDC_NO_ATOMICS__) && !defined(ATOMICS_OVERLOAD) #error "Atomic support is not present" #endif diff --git a/Sources/MsvcAtomicsCompat.h b/Sources/MsvcAtomicsCompat.h index 8f5592c..8110cb1 100644 --- a/Sources/MsvcAtomicsCompat.h +++ b/Sources/MsvcAtomicsCompat.h @@ -43,7 +43,7 @@ #if defined _MSC_VER && defined __STDC_NO_ATOMICS__ && __STDC_VERSION__ >= 201112L -#undef __STDC_NO_ATOMICS__ +#define ATOMICS_OVERLOAD #define __concat2(x,y) x ## y #define __concat3(x,y,z) x ## y ## z