mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
time.c: Check if defined(RUBY_MSVCRT_VERSION) to build on Solaris
Fixes [Bug #17947]
This commit is contained in:
parent
09ea2bb040
commit
688b217706
1 changed files with 1 additions and 1 deletions
2
time.c
2
time.c
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue