Sha256: 4ab30b631458977fcc6025095c93c3312a0a22cc48429ed10861380cf767fbd6

Contents?: true

Size: 747 Bytes

Versions: 10

Compression:

Stored size: 747 Bytes

Contents

/*
 * '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)


#ifndef GetReadFile
#define FPTR_TO_FD(fptr) ((fptr)->fd)
#else
#define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr)))
#endif

#ifndef HAVE_RB_IO_T
#define rb_io_t OpenFile
#endif

#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_ */

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
rho-tau-extensions-7.6.0 libs/openssl-edge/ext/ruby_missing.h
rho-tau-extensions-7.4.1 libs/openssl-edge/ext/ruby_missing.h
rho-tau-extensions-7.1.17 libs/openssl-edge/ext/ruby_missing.h
rho-tau-extensions-6.2.0 libs/openssl-edge/ext/ruby_missing.h
rho-tau-extensions-6.0.11 libs/openssl-edge/ext/ruby_missing.h
rho-tau-extensions-6.0.0 libs/openssl-edge/ext/ruby_missing.h
rho-tau-extensions-5.5.18 libs/openssl-edge/ext/ruby_missing.h
rho-tau-extensions-5.5.17 libs/openssl-edge/ext/ruby_missing.h
openssl-2.0.0.beta.2 ext/openssl/ruby_missing.h
openssl-2.0.0.beta.1 ext/openssl/ruby_missing.h