diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 15:57:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 15:57:55 +0000 |
commit | aa266d0c73a1a8756ed04270b43197d787c6f417 (patch) | |
tree | d6614d17f95552ad3c70663ddee51ab8aa081f10 /ext/json | |
parent | e12d10d2a717ab4790244d0e0a1174bac2c65450 (diff) | |
download | ruby-aa266d0c73a1a8756ed04270b43197d787c6f417.tar.gz ruby-aa266d0c73a1a8756ed04270b43197d787c6f417.tar.xz ruby-aa266d0c73a1a8756ed04270b43197d787c6f417.zip |
* ext/json/ext/generator/generator.c (Init_generator): requires
json/common.rb for GeneratorError, when static linked. a patch from
Kenta Murata <muraken AT gmail.com> in [ruby-dev:32789].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-rw-r--r-- | ext/json/ext/generator/generator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index 6bc37e38c..97b06e983 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -802,6 +802,7 @@ static VALUE cState_forget(VALUE self, VALUE object) */ void Init_generator() { + rb_require("json/common"); mJSON = rb_define_module("JSON"); mExt = rb_define_module_under(mJSON, "Ext"); mGenerator = rb_define_module_under(mExt, "Generator"); |