Ruby  2.0.0p645(2015-04-13revision50299)
ruby_missing.h
Go to the documentation of this file.
1 /*
2  * $Id: ruby_missing.h 33843 2011-11-26 01:49:36Z emboss $
3  * 'OpenSSL for Ruby' project
4  * Copyright (C) 2001-2003 Michal Rokos <m.rokos@sh.cvut.cz>
5  * All rights reserved.
6  */
7 /*
8  * This program is licenced under the same licence as Ruby.
9  * (See the file 'LICENCE'.)
10  */
11 #if !defined(_OSSL_RUBY_MISSING_H_)
12 #define _OSSL_RUBY_MISSING_H_
13 
14 #define rb_define_copy_func(klass, func) \
15  rb_define_method((klass), "initialize_copy", (func), 1)
16 
17 
18 #ifndef GetReadFile
19 #define FPTR_TO_FD(fptr) ((fptr)->fd)
20 #else
21 #define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr)))
22 #endif
23 
24 #ifndef HAVE_RB_IO_T
25 #define rb_io_t OpenFile
26 #endif
27 
28 #endif /* _OSSL_RUBY_MISSING_H_ */