瀏覽代碼

Merge pull request #5618 from vnen/fix-openssl-conf

Fix builtin OpenSSL configuration
Rémi Verschelde 9 年之前
父節點
當前提交
ae3d316798
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      drivers/builtin_openssl2/openssl/opensslconf.h

+ 7 - 2
drivers/builtin_openssl2/openssl/opensslconf.h

@@ -213,8 +213,13 @@ extern "C" {
 
 #ifdef OPENSSL_USE_64_BITS
 
-#define SIXTY_FOUR_BIT_LONG
-#undef SIXTY_FOUR_BIT
+# ifdef _WIN32
+#  undef SIXTY_FOUR_BIT_LONG
+#  define SIXTY_FOUR_BIT
+# else
+#  define SIXTY_FOUR_BIT_LONG
+#  undef SIXTY_FOUR_BIT
+# endif
 #undef THIRTY_TWO_BIT
 
 #else