diff --git a/spec/fixtures/windows_stat_native.c b/spec/fixtures/windows_stat_native.c index a1352a3..83144bb 100644 --- a/spec/fixtures/windows_stat_native.c +++ b/spec/fixtures/windows_stat_native.c @@ -91,11 +91,7 @@ test_socket (int af, int type, int protocol) #define CreateFileW test_create_file #define GetFileInformationByHandle test_file_information #define FindFirstFileExW test_find_file -#define EV_STANDALONE 1 -#define EV_USE_REALTIME 0 -#define EV_USE_MONOTONIC 0 -#define EV_WIN32_STAT_CODEPAGE CP_UTF8 -#include "ev.c" +#include "libev.c" #undef socket #undef GetQueuedCompletionStatus #undef CreateFileW diff --git a/spec/windows_stat_native_spec.rb b/spec/windows_stat_native_spec.rb index da76428..e320f4d 100644 --- a/spec/windows_stat_native_spec.rb +++ b/spec/windows_stat_native_spec.rb @@ -7,7 +7,7 @@ before(:context) do @build = Dir.mktmpdir('coolio-stat-native-') source = File.expand_path('fixtures/windows_stat_native.c', __dir__) - libev = File.expand_path('../ext/libev', __dir__) + coolio = File.expand_path('../ext/cool.io', __dir__) FileUtils.cp(source, @build) File.write(File.join(@build, 'extconf.rb'), <<~RUBY) begin @@ -16,7 +16,7 @@ # Other Windows toolchains can provide the compiler through PATH. end require 'mkmf' - $INCFLAGS << ' -I"#{libev}"' + $INCFLAGS << ' -I"#{coolio}"' abort 'ws2_32 is required' unless have_library('ws2_32') create_makefile('coolio_stat_native') RUBY