From 116f13e6b08bf2b1dec83bc81d2fcc1d202dd805 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 14 Aug 2019 13:21:25 -0700 Subject: [PATCH] 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. --- src/shims/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shims/atomic.h b/src/shims/atomic.h index 0bb27d3de..c002e726a 100644 --- a/src/shims/atomic.h +++ b/src/shims/atomic.h @@ -32,7 +32,7 @@ #endif // FreeBSD only defines _Bool in C mode. In C++ mode _Bool is not being defined. -#if defined(__cplusplus) && (defined(__FreeBSD__) || defined(_WIN32)) +#if defined(__cplusplus) #define _Bool bool #endif #include