Skip to content

Commit e99a38d

Browse files
compnerdrokhinip
authored andcommitted
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. Signed-off-by: Kim Topley <[email protected]>
1 parent e18bbaa commit e99a38d

File tree

2 files changed

+1
-1
lines changed

2 files 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

File renamed without changes.

0 commit comments

Comments
 (0)