From 2e69df0a26438cf46f8264ef3a56453086ebb5e0 Mon Sep 17 00:00:00 2001 From: Don Olmstead Date: Mon, 17 Oct 2022 16:58:50 -0700 Subject: [PATCH] easy_lock: check for HAVE_STDATOMIC_H as well The check for `HAVE_STDATOMIC_H` looks to see if the `stdatomic.h` header is present. Closes #9755 --- lib/easy_lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/easy_lock.h b/lib/easy_lock.h index 4c22be5f8a..d96e56b8d8 100644 --- a/lib/easy_lock.h +++ b/lib/easy_lock.h @@ -47,7 +47,7 @@ typedef PVOID SRWLOCK, *PSRWLOCK; #define curl_simple_lock_lock(m) AcquireSRWLockExclusive(m) #define curl_simple_lock_unlock(m) ReleaseSRWLockExclusive(m) -#elif defined (HAVE_ATOMIC) +#elif defined(HAVE_ATOMIC) && defined(HAVE_STDATOMIC_H) #include #if defined(HAVE_SCHED_YIELD) #include -- 2.47.3