From: Don Olmstead Date: Mon, 17 Oct 2022 23:58:50 +0000 (-0700) Subject: easy_lock: check for HAVE_STDATOMIC_H as well X-Git-Tag: curl-7_86_0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e69df0a26438cf46f8264ef3a56453086ebb5e0;p=thirdparty%2Fcurl.git 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 --- 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