From d98d3fb8ea617eadc5f8e268b9f26f8e586e118c Mon Sep 17 00:00:00 2001 From: Theo Hallenius Date: Wed, 27 Aug 2014 23:21:24 +0200 Subject: Someone fixed compiling issue on Win --- drivers/builtin_openssl2/crypto/o_str.c | 6 +++++- drivers/builtin_openssl2/openssl/rand.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/builtin_openssl2/crypto/o_str.c b/drivers/builtin_openssl2/crypto/o_str.c index 56104a6c34..d233afd46b 100644 --- a/drivers/builtin_openssl2/crypto/o_str.c +++ b/drivers/builtin_openssl2/crypto/o_str.c @@ -63,7 +63,11 @@ #if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && \ !defined(OPENSSL_SYSNAME_WIN32) && \ !defined(NETWARE_CLIB) -# include +#ifdef _WIN32 +#include +#else +#include +#endif #endif int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n) diff --git a/drivers/builtin_openssl2/openssl/rand.h b/drivers/builtin_openssl2/openssl/rand.h index 290f069f4d..b5adb825fd 100644 --- a/drivers/builtin_openssl2/openssl/rand.h +++ b/drivers/builtin_openssl2/openssl/rand.h @@ -64,6 +64,7 @@ #include #if defined(OPENSSL_SYS_WINDOWS) +#define WIN32_LEAN_AND_MEAN #include #ifdef OCSP_RESPONSE #undef OCSP_RESPONSE -- cgit v1.2.3