diff options
author | Yusuke Endoh <[email protected]> | 2021-06-14 10:40:41 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-06-14 10:40:41 +0900 |
commit | 688b217706546c2bc9a0926de246dc29d0935261 (patch) | |
tree | a0832fbecd85aee1b1bbcf1e9d83eebb2410a83c /time.c | |
parent | 09ea2bb0408740313fec03cb38163a60ce8bb188 (diff) |
time.c: Check if defined(RUBY_MSVCRT_VERSION) to build on Solaris
Fixes [Bug #17947]
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1623,7 +1623,7 @@ localtime_with_gmtoff_zone(const time_t *t, struct tm *result, long *gmtoff, VAL #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 |