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:
parent
60104c6f47
commit
fe28fc87d5
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue