diff options
author | Don Olmstead <don.j.olmstead@gmail.com> | 2022-10-17 16:58:50 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-10-21 09:23:02 +0200 |
commit | 2e69df0a26438cf46f8264ef3a56453086ebb5e0 (patch) | |
tree | 4763969b7b6f692c0d2fbfbe853541780affc6dd /lib/easy_lock.h | |
parent | 4a5a27069967b1e1eb5aed799d7c7640b83ee241 (diff) | |
download | curl-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.h | 2 |
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> |