summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-05-22 11:28:26 +0900
committerNobuyoshi Nakada <[email protected]>2025-05-22 13:08:39 +0900
commitec41b1e8231ed9fff207f273d65d7c357151b1d6 ()
treef06a35fdfb307a29f0a0cf5330fdc315172efb15 /include
parent056497319658cbefe22351c6ec5c9fa6e4df72bd (diff)
Fix for old mingw without `clock_gettime` and `clock_getres`
Notes: Merged: https://.com/ruby/ruby/pull/13405
-rw-r--r--include/ruby/win32.h19
1 files changed, 16 insertions, 3 deletions
@@ -127,13 +127,26 @@ typedef unsigned int uintptr_t;
typedef int clockid_t;
#if defined(__MINGW32__)
#undef CLOCK_PROCESS_CPUTIME_ID
#undef CLOCK_THREAD_CPUTIME_ID
#undef CLOCK_REALTIME_COARSE
#endif
-#if defined(HAVE_CLOCK_GETTIME) && !defined(CLOCK_REALTIME)
-#define CLOCK_REALTIME 0
-#define CLOCK_MONOTONIC 1
#endif
#undef utime