ext/rubysl/openssl/ruby_missing.h in rubysl-openssl-2.10 vs ext/rubysl/openssl/ruby_missing.h in rubysl-openssl-2.11

- old
+ new

@@ -11,17 +11,19 @@ #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))) + +/* Ruby 2.4 */ +#ifndef RB_INTEGER_TYPE_P +# define RB_INTEGER_TYPE_P(obj) (RB_FIXNUM_P(obj) || RB_TYPE_P(obj, T_BIGNUM)) #endif -#ifndef HAVE_RB_IO_T -#define rb_io_t OpenFile +/* Ruby 2.5 */ +#ifndef ST2FIX +# define RB_ST2FIX(h) LONG2FIX((long)(h)) +# define ST2FIX(h) RB_ST2FIX(h) #endif #endif /* _OSSL_RUBY_MISSING_H_ */