summaryrefslogtreecommitdiff
path: root/lib/easy_lock.h
diff options
context:
space:
mode:
authorDon Olmstead <don.j.olmstead@gmail.com>2022-10-17 16:58:50 -0700
committerDaniel Stenberg <daniel@haxx.se>2022-10-21 09:23:02 +0200
commit2e69df0a26438cf46f8264ef3a56453086ebb5e0 (patch)
tree4763969b7b6f692c0d2fbfbe853541780affc6dd /lib/easy_lock.h
parent4a5a27069967b1e1eb5aed799d7c7640b83ee241 (diff)
downloadcurl-2e69df0a26438cf46f8264ef3a56453086ebb5e0.tar.gz
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
Diffstat (limited to 'lib/easy_lock.h')
-rw-r--r--lib/easy_lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy_lock.h b/lib/easy_lock.h
index 4c22be5f8..d96e56b8d 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 <stdatomic.h>
#if defined(HAVE_SCHED_YIELD)
#include <sched.h>