Ruby
2.0.0p247(2013-06-27revision41674)
|
00001 /* 00002 * $Id: ruby_missing.h 33843 2011-11-26 01:49:36Z emboss $ 00003 * 'OpenSSL for Ruby' project 00004 * Copyright (C) 2001-2003 Michal Rokos <m.rokos@sh.cvut.cz> 00005 * All rights reserved. 00006 */ 00007 /* 00008 * This program is licenced under the same licence as Ruby. 00009 * (See the file 'LICENCE'.) 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 /* _OSSL_RUBY_MISSING_H_ */ 00029