summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-07-09 20:02:26 -0300
committerGeorge Marques <george@gmarqu.es>2016-07-09 20:13:35 -0300
commit2c6d0d490519016986c1c5be992ff53fbdea8c8f (patch)
treeed28a87d9d27eaa976757f78a2c5c4e110bd9776
parent864c0e84de9c2a2c5a030ec4ee167f3793e1e962 (diff)
Fix builtin OpenSSL configuration
Fixes a bug that happens on Windows 64-bits.
-rw-r--r--drivers/builtin_openssl2/openssl/opensslconf.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/builtin_openssl2/openssl/opensslconf.h b/drivers/builtin_openssl2/openssl/opensslconf.h
index 25429e94d6..c86bb60b94 100644
--- a/drivers/builtin_openssl2/openssl/opensslconf.h
+++ b/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