diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-05-22 11:28:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-05-22 13:08:39 +0900 |
commit | ec41b1e8231ed9fff207f273d65d7c357151b1d6 (patch) | |
tree | f06a35fdfb307a29f0a0cf5330fdc315172efb15 /win32/win32.c | |
parent | 056497319658cbefe22351c6ec5c9fa6e4df72bd (diff) |
Fix for old mingw without `clock_gettime` and `clock_getres`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13405
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index c57ac49991..72539e8a63 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4761,7 +4761,7 @@ gettimeofday(struct timeval *tv, struct timezone *tz) return 0; } -#if !defined(__MINGW32__) || !defined(HAVE_CLOCK_GETTIME) +#ifdef NEED_CLOCK_GETTIME /* License: Ruby's */ int clock_gettime(clockid_t clock_id, struct timespec *sp) @@ -4803,7 +4803,7 @@ clock_gettime(clockid_t clock_id, struct timespec *sp) } #endif -#if !defined(__MINGW32__) || !defined(HAVE_CLOCK_GETRES) +#ifdef NEED_CLOCK_GETRES /* License: Ruby's */ int clock_getres(clockid_t clock_id, struct timespec *sp) |