File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ Bug Fixes in This Version
750
750
751
751
- Fixed `static_cast ` to array of unknown bound. Fixes (#GH62863).
752
752
753
+ - Fixed the definition of ATOMIC_FLAG_INIT in stdatomic.h so it can be used in C++.
754
+
753
755
Bug Fixes to Compiler Builtins
754
756
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
755
757
Original file line number Diff line number Diff line change @@ -166,7 +166,11 @@ typedef _Atomic(uintmax_t) atomic_uintmax_t;
166
166
167
167
typedef struct atomic_flag { atomic_bool _Value; } atomic_flag;
168
168
169
+ #ifdef __cplusplus
170
+ #define ATOMIC_FLAG_INIT {false }
171
+ #else
169
172
#define ATOMIC_FLAG_INIT { 0 }
173
+ #endif
170
174
171
175
/* These should be provided by the libc implementation. */
172
176
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments