Kaynağa Gözat

Win64 builds should use OpenSSL 64 bit as default

bel 9 yıl önce
ebeveyn
işleme
a41e091973
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      src/civetweb.c

+ 7 - 0
src/civetweb.c

@@ -264,8 +264,15 @@ typedef long off_t;
 
 #define ERRNO ((int)(GetLastError()))
 #define NO_SOCKLEN_T
+
+#if defined(_WIN64) || defined(__MINGW64__)
+#define SSL_LIB "ssleay64.dll"
+#define CRYPTO_LIB "libeay64.dll"
+#else
 #define SSL_LIB "ssleay32.dll"
 #define CRYPTO_LIB "libeay32.dll"
+#endif
+
 #define O_NONBLOCK (0)
 #ifndef W_OK
 #define W_OK (2) /* http://msdn.microsoft.com/en-us/library/1w06ktdy.aspx */