Просмотр исходного кода

Fix builtin OpenSSL configuration

Fixes a bug that happens on Windows 64-bits.
George Marques 9 лет назад
Родитель
Сommit
2c6d0d4905
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