[前][次][番号順一覧][スレッド一覧]

ruby-changes:71433

From: Nobuyoshi <ko1@a...>
Date: Wed, 16 Mar 2022 17:50:39 +0900 (JST)
Subject: [ruby-changes:71433] f91ea23324 (master): Honor if `_Bool` is available

https://git.ruby-lang.org/ruby.git/commit/?id=f91ea23324

From f91ea2332420bcabfafbb2540238f4f8422bfb97 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
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(-)

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 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/stdbool.h#L39
 # /* 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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]