Skip to content

Commit bb852f1

Browse files
committed
Better detection of Windows platform
1 parent 3c669f4 commit bb852f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hiredis-client/ext/redis_client/hiredis/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(debug)
88
end
99

1010
def configure
11-
if RUBY_ENGINE == "ruby" && !RUBY_PLATFORM.match?(/mswin/)
11+
if RUBY_ENGINE == "ruby" && !Gem.win_platform?
1212
configure_extension
1313
create_makefile("redis_client/hiredis_connection")
1414
else

0 commit comments

Comments
 (0)