From f91ea2332420bcabfafbb2540238f4f8422bfb97 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 16 Mar 2022 17:50:13 +0900 Subject: Honor if `_Bool` is available `AC_HEADER_STDBOOL` rejects stdbool.h in c2x, which is not conforming to C99. --- include/ruby/internal/stdbool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby') 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 -#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 -- cgit v1.2.3