mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-05 21:53:03 +02:00
Older versions of Ruby 2 don't have rb_utf8_str_*
This commit is contained in:
parent
e5e5a3a5e0
commit
bd075d62fe
1 changed files with 5 additions and 4 deletions
|
@ -168,14 +168,15 @@ return Data_Wrap_Struct(klass, 0, free, 0); \
|
|||
|
||||
#define DEF_ALLOCFUNC(type) DEF_ALLOCFUNC_CUSTOMFREE(type, freeInstance<type>)
|
||||
|
||||
#if RAPI_MINOR < 9
|
||||
#define PRIsVALUE "s"
|
||||
|
||||
#endif
|
||||
|
||||
#if RAPI_FULL < 240
|
||||
#define rb_utf8_str_new_cstr rb_str_new2
|
||||
#define rb_utf8_str_new rb_str_new
|
||||
#endif
|
||||
|
||||
#define PRIsVALUE "s"
|
||||
|
||||
#endif
|
||||
// end
|
||||
|
||||
#if RAPI_FULL > 187
|
||||
|
|
Loading…
Add table
Reference in a new issue