diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-16 17:50:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 17:50:13 +0900 |
commit | f91ea2332420bcabfafbb2540238f4f8422bfb97 (patch) | |
tree | 2eab594dd18c0690285831d87fad075b30a68c48 | |
parent | 151208a19b09e29d45a79d92d73b67ec2ff692a6 (diff) |
Honor if `_Bool` is available
`AC_HEADER_STDBOOL` rejects stdbool.h in c2x, which is not
conforming to C99.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5666
Merged-By: nobu <nobu@ruby-lang.org>
-rw-r--r-- | include/ruby/internal/stdbool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/stdbool.h b/include/ruby/internal/stdbool.h index b15321cb00..1ca61136ba 100644 --- a/include/ruby/internal/stdbool.h +++ b/include/ruby/internal/stdbool.h @@ -39,7 +39,7 @@ # /* Take stdbool.h definition. */ # include <stdbool.h> -#else +#elif !defined(HAVE__BOOL) typedef unsigned char _Bool; # /* See also http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2229.htm */ # define bool _Bool |