Skip to content

Commit 57a7364

Browse files
committed
Don't define RB_ENC_INTERNED_STR_NULL_CHECK on Ruby 3.0.5+
The fix was backported as part of 3.0.5.
1 parent c45696a commit 57a7364

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/msgpack/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$CFLAGS << %[ -I.. -Wall -O3 #{RbConfig::CONFIG["debugflags"]} -std=gnu99]
1010
end
1111

12-
if RUBY_VERSION.start_with?('3.0.')
12+
if RUBY_VERSION.start_with?('3.0.') && RUBY_VERSION <= '3.0.5'
1313
# https://bugs.ruby-lang.org/issues/18772
1414
$CFLAGS << ' -DRB_ENC_INTERNED_STR_NULL_CHECK=1 '
1515
end

0 commit comments

Comments
 (0)