From cbdc9baafd4cc919abc7aed070d08d8ea847aa33 Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Thu, 5 Apr 2018 16:15:53 +0200 Subject: OpenSSL 1.0.2o has switched to winsock2 (#4184) So here we need to make sure we don't simply include windows but only the parts that we want --- src/_cffi_src/openssl/callbacks.py | 3 +++ src/_cffi_src/openssl/cryptography.py | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/_cffi_src') diff --git a/src/_cffi_src/openssl/callbacks.py b/src/_cffi_src/openssl/callbacks.py index cf2b2da5..e215ed4e 100644 --- a/src/_cffi_src/openssl/callbacks.py +++ b/src/_cffi_src/openssl/callbacks.py @@ -11,7 +11,10 @@ INCLUDES = """ #include #ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN #include +#include +#include #else #include #include diff --git a/src/_cffi_src/openssl/cryptography.py b/src/_cffi_src/openssl/cryptography.py index 9095e3ab..4f9378d3 100644 --- a/src/_cffi_src/openssl/cryptography.py +++ b/src/_cffi_src/openssl/cryptography.py @@ -22,7 +22,10 @@ INCLUDES = """ #include #endif #if defined(_WIN32) +#define WIN32_LEAN_AND_MEAN #include +#include +#include #endif #define CRYPTOGRAPHY_OPENSSL_102_OR_GREATER \ -- cgit v1.2.3