diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-05-11 11:31:47 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-05-11 12:09:26 +0900 |
commit | 49742414f6444960838bb968bab43db27f5872c1 () | |
tree | 3d1cd7f8c83dd109d4a8df5d5f85dcd78cced181 | |
parent | 915d0277381826edf83a261c85e9fe0919a3a3a3 (diff) |
Revert "Fix redefinition of `clock_gettime` and `clock_getres`"
This reverts commit 585598623da949c92d0f2ea94029a863142ec908. This broke Windows CIs ``` linking miniruby.exe Creating library miniruby.lib and object miniruby.exp process.obj : error LNK2019: unresolved external symbol clock_gettime referenced in function rb_clock_gettime random.obj : error LNK2001: unresolved external symbol clock_gettime thread.obj : error LNK2001: unresolved external symbol clock_gettime time.obj : error LNK2001: unresolved external symbol clock_gettime process.obj : error LNK2019: unresolved external symbol clock_getres referenced in function rb_clock_getres miniruby.exe : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.EXE"' : return code '0x2' ```
Notes: Merged: https://.com/ruby/ruby/pull/13300
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -4761,7 +4761,6 @@ gettimeofday(struct timeval *tv, struct timezone *tz) return 0; } -#ifndef HAVE_CLOCK_GETTIME /* License: Ruby's */ int clock_gettime(clockid_t clock_id, struct timespec *sp) @@ -4801,9 +4800,7 @@ clock_gettime(clockid_t clock_id, struct timespec *sp) return -1; } } -#endif -#ifndef HAVE_CLOCK_GETRES /* License: Ruby's */ int clock_getres(clockid_t clock_id, struct timespec *sp) @@ -4831,7 +4828,6 @@ clock_getres(clockid_t clock_id, struct timespec *sp) return -1; } } -#endif /* License: Ruby's */ static char * |