summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/ext/rubyspec.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-17 00:36:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-17 00:36:08 +0000
commitd25a27abba89ade8039cc8baabce19e34865ee89 (patch)
tree6a51bd5143809af16517a1236258bea9e4a1b38d /spec/ruby/optional/capi/ext/rubyspec.h
parentd1417ff8fabe8a99dc6c21830b7b3169bb03aa64 (diff)
call rb_str_modify to make a copy unshared
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/optional/capi/ext/rubyspec.h')
-rw-r--r--spec/ruby/optional/capi/ext/rubyspec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/ext/rubyspec.h b/spec/ruby/optional/capi/ext/rubyspec.h
index e5a90bfc88..63691d62fd 100644
--- a/spec/ruby/optional/capi/ext/rubyspec.h
+++ b/spec/ruby/optional/capi/ext/rubyspec.h
@@ -572,6 +572,7 @@
#define HAVE_RB_STRING 1
#define HAVE_SAFE_STRING_VALUE 1
#define HAVE_RB_STRING_VALUE_CSTR 1
+#define HAVE_RB_STR_MODIFY 1
/* Struct */
#define HAVE_RB_STRUCT_AREF 1