mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-02 13:12:09 +00:00
[libc++] Fix __threading_support when used with C11 threading (#66780)
Since we are defining these typedefs inside namespace std, we need to refer to ::once_flag (the C Standard Library version). Otherwise 'once_flag' refers to 'std::once_flag', and that's not something we can pass to the C Standard Library '::call_once()' function later on.
This commit is contained in:
parent
2d1e8a03f5
commit
e7a7a16901
@ -102,7 +102,7 @@ typedef cnd_t __libcpp_condvar_t;
|
|||||||
#define _LIBCPP_CONDVAR_INITIALIZER {}
|
#define _LIBCPP_CONDVAR_INITIALIZER {}
|
||||||
|
|
||||||
// Execute once
|
// Execute once
|
||||||
typedef once_flag __libcpp_exec_once_flag;
|
typedef ::once_flag __libcpp_exec_once_flag;
|
||||||
#define _LIBCPP_EXEC_ONCE_INITIALIZER ONCE_FLAG_INIT
|
#define _LIBCPP_EXEC_ONCE_INITIALIZER ONCE_FLAG_INIT
|
||||||
|
|
||||||
// Thread id
|
// Thread id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user