aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-09-04 20:38:19 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-10-27 16:16:00 +0900
commit5a81b4ba9ba2ff120058988ea6148d624350eeac (patch)
tree1516478d412a692c46e3307a4660eaa72e5fac3e /ext/openssl
parent5ba12a364fa5019f0e0f1e356087c001330097f1 (diff)
downloadruby-openssl-5a81b4ba9ba2ff120058988ea6148d624350eeac.tar.gz
Remove unnecessary compat macro for old versions of Ruby
Remove unnecessary macros defined for compatibility with Ruby < 1.9. We won't support Ruby versions before 2.3.
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ruby_missing.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/openssl/ruby_missing.h b/ext/openssl/ruby_missing.h
index f076b175..8dacc826 100644
--- a/ext/openssl/ruby_missing.h
+++ b/ext/openssl/ruby_missing.h
@@ -13,16 +13,7 @@
#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 */