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

ruby-changes:66470

From: Yusuke <ko1@a...>
Date: Mon, 14 Jun 2021 10:42:14 +0900 (JST)
Subject: [ruby-changes:66470] 688b217706 (master): time.c: Check if defined(RUBY_MSVCRT_VERSION) to build on Solaris

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

From 688b217706546c2bc9a0926de246dc29d0935261 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Mon, 14 Jun 2021 10:40:41 +0900
Subject: time.c: Check if defined(RUBY_MSVCRT_VERSION) to build on Solaris

Fixes [Bug #17947]
---
 time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/time.c b/time.c
index a5c00e2..a7ef9d2 100644
--- a/time.c
+++ b/time.c
@@ -1623,7 +1623,7 @@ localtime_with_gmtoff_zone(const time_t *t, struct tm *result, long *gmtoff, VAL https://github.com/ruby/ruby/blob/trunk/time.c#L1623
 #if defined(HAVE_TM_ZONE)
             *zone = zone_str(tm.tm_zone);
 #elif defined(HAVE_TZNAME) && defined(HAVE_DAYLIGHT)
-# if RUBY_MSVCRT_VERSION >= 140
+# if defined(RUBY_MSVCRT_VERSION) && RUBY_MSVCRT_VERSION >= 140
 #  define tzname _tzname
 #  define daylight _daylight
 # endif
-- 
cgit v1.1


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

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