浏览代码

Win64 builds should use OpenSSL 64 bit as default

bel 9 年之前
父节点
当前提交
a41e091973
共有 1 个文件被更改,包括 7 次插入0 次删除
  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 */