1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Honor if _Bool is available

`AC_HEADER_STDBOOL` rejects stdbool.h in c2x, which is not
conforming to C99.
This commit is contained in:
Nobuyoshi Nakada 2022-03-16 17:50:13 +09:00 committed by GitHub
parent 151208a19b
commit f91ea23324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-03-16 17:50:46 +09:00
Merged: https://github.com/ruby/ruby/pull/5666

Merged-By: nobu <nobu@ruby-lang.org>

View file

@ -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