lib/extensions/openssl/ext/ruby_missing.h in rhodes-6.0.11 vs lib/extensions/openssl/ext/ruby_missing.h in rhodes-6.2.0

- old
+ new

@@ -11,17 +11,21 @@ #define _OSSL_RUBY_MISSING_H_ #define rb_define_copy_func(klass, func) \ rb_define_method((klass), "initialize_copy", (func), 1) - -#ifndef GetReadFile #define FPTR_TO_FD(fptr) ((fptr)->fd) -#else -#define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr))) -#endif -#ifndef HAVE_RB_IO_T -#define rb_io_t OpenFile +#ifndef RB_INTEGER_TYPE_P +/* for Ruby 2.3 compatibility */ +#define RB_INTEGER_TYPE_P(obj) (RB_FIXNUM_P(obj) || RB_TYPE_P(obj, T_BIGNUM)) #endif + +//RHO +//for Ruby 2.3 compatibility +#define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG) +#define RB_LONG2FIX(i) RB_INT2FIX(i) +#define RB_ST2FIX(h) RB_LONG2FIX((long)(h)) +#define ST2FIX(h) RB_ST2FIX(h) +//RHO #endif /* _OSSL_RUBY_MISSING_H_ */