mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
aab0d67a1f
Import Ruby/OpenSSL 2.0.0. The full commit history since 2.0.0 beta.2 (imported at r56098) can be found at: https://github.com/ruby/openssl/compare/v2.0.0.beta.2...v2.0.0 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
23 lines
606 B
C
23 lines
606 B
C
/*
|
|
* 'OpenSSL for Ruby' project
|
|
* Copyright (C) 2001-2003 Michal Rokos <m.rokos@sh.cvut.cz>
|
|
* All rights reserved.
|
|
*/
|
|
/*
|
|
* This program is licensed under the same licence as Ruby.
|
|
* (See the file 'LICENCE'.)
|
|
*/
|
|
#if !defined(_OSSL_RUBY_MISSING_H_)
|
|
#define _OSSL_RUBY_MISSING_H_
|
|
|
|
#define rb_define_copy_func(klass, func) \
|
|
rb_define_method((klass), "initialize_copy", (func), 1)
|
|
|
|
#define FPTR_TO_FD(fptr) ((fptr)->fd)
|
|
|
|
#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
|
|
|
|
#endif /* _OSSL_RUBY_MISSING_H_ */
|