Skip to content

Commit

Permalink
Revert usage of libc's time() on MINGW
Browse files Browse the repository at this point in the history
Since libc is reverted to msvcrt.dll, we can use classic time() function again.
  • Loading branch information
larskanis committed Jun 9, 2020
1 parent f259139 commit 90f4fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/bench_time.rb
Expand Up @@ -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
Expand Down

0 comments on commit 90f4fca

Please sign in to comment.