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:
parent
151208a19b
commit
f91ea23324
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>
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue