00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #if !defined(_OSSL_RUBY_MISSING_H_)
00012 #define _OSSL_RUBY_MISSING_H_
00013
00014 #define rb_define_copy_func(klass, func) \
00015 rb_define_method((klass), "initialize_copy", (func), 1)
00016
00017
00018 #ifndef GetReadFile
00019 #define FPTR_TO_FD(fptr) ((fptr)->fd)
00020 #else
00021 #define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr)))
00022 #endif
00023
00024 #ifndef HAVE_RB_IO_T
00025 #define rb_io_t OpenFile
00026 #endif
00027
00028 #endif
00029