Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions spec/fixtures/windows_stat_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/windows_stat_native_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading