Fix for undefined symbol rb_long2int
This commit is contained in:
parent
dbcc9042bf
commit
bc5dcdfc7f
|
@ -31,14 +31,14 @@
|
||||||
# define RSTRING_LEN(v) RSTRING(v)->len
|
# define RSTRING_LEN(v) RSTRING(v)->len
|
||||||
#endif
|
#endif
|
||||||
#ifndef RSTRING_LENINT
|
#ifndef RSTRING_LENINT
|
||||||
# define RSTRING_LENINT(v) rb_long2int(RSTRING_LEN(v))
|
# define RSTRING_LENINT(v) (int)(RSTRING_LEN(v))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef RARRAY_LEN
|
#ifndef RARRAY_LEN
|
||||||
# define RARRAY_LEN(v) RARRAY(v)->len
|
# define RARRAY_LEN(v) RARRAY(v)->len
|
||||||
#endif
|
#endif
|
||||||
#ifndef RARRAY_LENINT
|
#ifndef RARRAY_LENINT
|
||||||
# define RARRAY_LENINT(v) rb_long2int(RARRAY_LEN(v))
|
# define RARRAY_LENINT(v) (int)(RARRAY_LEN(v))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_RUBY_ST_H
|
#if HAVE_RUBY_ST_H
|
||||||
|
|
Loading…
Reference in New Issue