From a626788c0796a0d7cd656847a99c676fa71617f6 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 6 Feb 2014 16:50:37 +0000 Subject: [PATCH] Reorder header files to include before OpenSSL headers include , it seems, so we need to include before any of those. Signed-off-by: David Woodhouse --- openconnect-internal.h | 24 ++++++++++++------------ openssl.c | 3 ++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/openconnect-internal.h b/openconnect-internal.h index db568eb2..f885051f 100644 --- a/openconnect-internal.h +++ b/openconnect-internal.h @@ -29,6 +29,18 @@ #define __OPENCONNECT_PRIVATE__ +#ifdef _WIN32 +#include +#include +#else +#include +#include +#include +#include +#include +#include +#endif + #include "openconnect.h" #if defined(OPENCONNECT_OPENSSL) || defined(DTLS_OPENSSL) @@ -58,18 +70,6 @@ #include #include -#ifdef _WIN32 -#include -#include -#else -#include -#include -#include -#include -#include -#include -#endif - #ifdef LIBPROXY_HDR #include LIBPROXY_HDR #endif diff --git a/openssl.c b/openssl.c index 01378b65..5f23c088 100644 --- a/openssl.c +++ b/openssl.c @@ -27,6 +27,8 @@ #include #include +#include "openconnect-internal.h" + #include #include #include @@ -37,7 +39,6 @@ #include #include -#include "openconnect-internal.h" int openconnect_sha1(unsigned char *result, void *data, int len) {