1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

replaced rb_str_new_cstr() with rb_str_new2() for 1.8.7

This commit is contained in:
ser1zw 2011-11-19 00:14:34 +09:00
parent 60104c6f47
commit fe28fc87d5

View file

@ -161,7 +161,7 @@ define_ruby_module()
rb_module = rb_define_module("OpenCV");
/* OpenCV version */
rb_define_const(rb_module, "CV_VERSION", rb_str_new_cstr(CV_VERSION));
rb_define_const(rb_module, "CV_VERSION", rb_str_new2(CV_VERSION));
rb_define_const(rb_module, "CV_MAJOR_VERSION", INT2FIX(CV_MAJOR_VERSION));
rb_define_const(rb_module, "CV_MINOR_VERSION", INT2FIX(CV_MINOR_VERSION));
rb_define_const(rb_module, "CV_SUBMINOR_VERSION", INT2FIX(CV_SUBMINOR_VERSION));