mirror of
https://github.com/curl/curl.git
synced 2026-07-24 12:17:16 +03:00
easy_lock: switch to using atomic_int instead of bool
To work with more compilers without requiring separate libs to link. Like with gcc-12 for RISC-V on Linux. Reported-by: Adam Sampson Fixes #9055 Closes #9061
This commit is contained in:
parent
e631f6e10e
commit
50efb0822a
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@
|
|||
#include <sched.h>
|
||||
#endif
|
||||
|
||||
#define curl_simple_lock atomic_bool
|
||||
#define CURL_SIMPLE_LOCK_INIT false
|
||||
#define curl_simple_lock atomic_int
|
||||
#define CURL_SIMPLE_LOCK_INIT 0
|
||||
|
||||
static inline void curl_simple_lock_lock(curl_simple_lock *lock)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue