aboutsummaryrefslogtreecommitdiffstats
path: root/ossl.h
diff options
context:
space:
mode:
authorGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-14 19:29:38 +0000
committerGOTOU Yuuzou <gotoyuzo@notwork.org>2003-07-14 19:29:38 +0000
commit0a86f1fe7a113965f27b5544448d2d4893bc1894 (patch)
tree74abf45817cf170d14833d4f0c8d52731ffd216e /ossl.h
parentff4eab599ddaede3879a5b02f7e5a7cb793a5d5f (diff)
downloadruby-openssl-history-0a86f1fe7a113965f27b5544448d2d4893bc1894.tar.gz
* openssl_missing.h: add MS_CALLBACK.
* extconf.rb: should check <openssl/e_os.h>. * ossl.h: check HAVE_OPENSSL_E_OS_H. * net/https.rb: follow ruby-1.8.
Diffstat (limited to 'ossl.h')
-rw-r--r--ossl.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ossl.h b/ossl.h
index 7a807ee..6485046 100644
--- a/ossl.h
+++ b/ossl.h
@@ -15,7 +15,7 @@
extern "C" {
#endif
-#if defined(NT)
+#if defined(NT) || defined(_WIN32)
# define OpenFile WINAPI_OpenFile
#endif
#include <errno.h>
@@ -25,8 +25,10 @@ extern "C" {
#include <openssl/ssl.h>
#include <openssl/hmac.h>
#include <openssl/rand.h>
-#include <openssl/e_os.h>
-#if defined(NT)
+#if HAVE_OPENSSL_E_OS_H
+# include <openssl/e_os.h>
+#endif
+#if defined(NT) || defined(_WIN32)
# undef OpenFile
#endif