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

ruby-changes:67092

From: Nobuyoshi <ko1@a...>
Date: Mon, 9 Aug 2021 19:25:50 +0900 (JST)
Subject: [ruby-changes:67092] b8f7e8ac6b (master): Include ruby.h before internal headers to suppress -Wundef warnings

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

From b8f7e8ac6bd177bf25bc9fa057bcb784682e0227 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 9 Aug 2021 17:53:45 +0900
Subject: Include ruby.h before internal headers to suppress -Wundef warnings

---
 ext/-test-/time/leap_second.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ext/-test-/time/leap_second.c b/ext/-test-/time/leap_second.c
index ccf3819..ee7011f 100644
--- a/ext/-test-/time/leap_second.c
+++ b/ext/-test-/time/leap_second.c
@@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/time/leap_second.c#L1
+#include "ruby.h"
 #include "internal/time.h"
 
 static VALUE
-- 
cgit v1.1


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

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