summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2020-06-09 15:20:36 +0200
committerLars Kanis <lars@greiz-reinsdorf.de>2020-06-09 15:26:00 +0200
commit90f4fcabc2ee729bfac83a103dac0780c37f05fd (patch)
tree9165409fc3b765bf2d3893439bc173a5b512f140
parentf2591397f92fe911257bef216b87bb2f233efb89 (diff)
downloadffi-90f4fcabc2ee729bfac83a103dac0780c37f05fd.tar.gz
Revert usage of libc's time() on MINGW
Since libc is reverted to msvcrt.dll, we can use classic time() function again.
-rw-r--r--bench/bench_time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/bench_time.rb b/bench/bench_time.rb
index 6714846..aaec64f 100644
--- a/bench/bench_time.rb
+++ b/bench/bench_time.rb
@@ -4,7 +4,7 @@ module BenchTime
module Posix
extend FFI::Library
ffi_lib FFI::Library::LIBC
- if FFI::Platform.windows?
+ if RUBY_PLATFORM =~ /mswin/
attach_function :time, :_time64, [ :buffer_out ], :uint64, ignore_error: true
else
attach_function :time, [ :buffer_out ], :ulong, ignore_error: true