ext/jpeg_jpeg.c in jpeg-0.2.1 vs ext/jpeg_jpeg.c in jpeg-0.2.2

- old
+ new

@@ -11,11 +11,11 @@ static void jpeg_jpeg_free(struct jpeg_jpeg *p); static VALUE jpeg_jpeg_width(VALUE self); static VALUE jpeg_jpeg_height(VALUE self); static VALUE jpeg_jpeg_size(VALUE self); -extern VALUE Error; +extern VALUE Jpeg_Error; void Init_jpeg_jpeg() { Jpeg = rb_define_class("Jpeg", rb_cObject); rb_define_alloc_func(Jpeg, jpeg_jpeg_alloc); rb_define_singleton_method(Jpeg, "open", jpeg_jpeg_s_open, -1); @@ -24,10 +24,10 @@ rb_define_method(Jpeg, "size", jpeg_jpeg_size, 0); } void jpeg_jpeg_exit(j_common_ptr jpeg) { char buffer[JMSG_LENGTH_MAX]; jpeg->err->format_message(jpeg, buffer); - rb_raise(Error, buffer); + rb_raise(Jpeg_Error, buffer); } static VALUE jpeg_jpeg_alloc(VALUE klass) { struct jpeg_jpeg *jpeg = ALLOC(struct jpeg_jpeg);