(https://github.com/ruby/stringio/pull/129) Companion PR to <https://github.com/ruby/ruby/pull/7894>. https://github.com/ruby/stringio/commit/2d3988e12f
10 lines
202 B
Ruby
10 lines
202 B
Ruby
# frozen_string_literal: false
|
|
require 'mkmf'
|
|
if RUBY_ENGINE == 'ruby'
|
|
have_type("rb_io_mode_t", "ruby/io.h")
|
|
|
|
create_makefile('stringio')
|
|
else
|
|
File.write('Makefile', dummy_makefile("").join)
|
|
end
|