summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 15:57:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-25 15:57:55 +0000
commitdb5a25f3f37afeeaa9c3c1f793ea0c26b26cef82 (patch)
treed6614d17f95552ad3c70663ddee51ab8aa081f10 /ext/json
parentce9df5d01e39cff95710974223232c67b4cb2bc1 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/ext/generator/generator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c
index 6bc37e3..97b06e9 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");