Skip to content

Commit 116f13e

Browse files
committed
shims: always replace _Bool with bool in C++
This generalises the path to always perform this substitution in C++ mode. This should repair the build of libdispatch on android.
1 parent 68875cb commit 116f13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#endif
3333

3434
// FreeBSD only defines _Bool in C mode. In C++ mode _Bool is not being defined.
35-
#if defined(__cplusplus) && (defined(__FreeBSD__) || defined(_WIN32))
35+
#if defined(__cplusplus)
3636
#define _Bool bool
3737
#endif
3838
#include <stdatomic.h>

0 commit comments

Comments
 (0)