Bug #9119 » modified.patch
win32.c → win32.c.new | ||
---|---|---|
return _osfile(fd) & FTEXT;
|
||
}
|
||
#if RUBY_MSVCRT_VERSION < 80 && !defined(__MINGW64__)
|
||
#if RUBY_MSVCRT_VERSION < 80 && !defined(__MINGW64_VERSION_MAJOR)
|
||
/* License: Ruby's */
|
||
static int
|
||
unixtime_to_systemtime(const time_t t, SYSTEMTIME *st)
|
||
... | ... | |
# endif
|
||
# define gmtime_s _gmtime64_s
|
||
# define localtime_s _localtime64_s
|
||
#elif __MINGW64_VERSION_MAJOR
|
||
# define gmtime_s _gmtime32_s
|
||
# define localtime_s _localtime32_s
|
||
#endif
|
||
/* License: Ruby's */
|
||
... | ... | |
errno = e;
|
||
return NULL;
|
||
}
|
||
#if RUBY_MSVCRT_VERSION >= 80 || defined(__MINGW64__)
|
||
#if RUBY_MSVCRT_VERSION >= 80 || defined(__MINGW64_VERSION_MAJOR)
|
||
e = gmtime_s(rp, tp);
|
||
if (e != 0) goto error;
|
||
#else
|
||
... | ... | |
errno = e;
|
||
return NULL;
|
||
}
|
||
#if RUBY_MSVCRT_VERSION >= 80 || defined(__MINGW64__)
|
||
#if RUBY_MSVCRT_VERSION >= 80 || defined(__MINGW64_VERSION_MAJOR)
|
||
e = localtime_s(rp, tp);
|
||
if (e) goto error;
|
||
#else
|
- « Previous
- 1
- 2
- Next »