From ec0324422705875e84eb1afdeae36a4e1db5f467 Mon Sep 17 00:00:00 2001 From: Aki Koskinen Date: Fri, 27 Feb 2015 10:49:02 +0200 Subject: [PATCH] Include openssl headers last Windows headers #define some names that openssl uses too. Openssl headers #undef the offending names before reusing them. But if those offending Windows headers get included after the openssl headers the namespace is polluted and nothing good happens. Fixes issue #2850. --- src/openssl_stream.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openssl_stream.c b/src/openssl_stream.c index e0cf9b6b3..9ddf6e4be 100644 --- a/src/openssl_stream.c +++ b/src/openssl_stream.c @@ -7,10 +7,6 @@ #ifdef GIT_SSL -#include -#include -#include - #include #include "global.h" @@ -26,6 +22,10 @@ # include #endif +#include +#include +#include + static int ssl_set_error(SSL *ssl, int error) { int err;