diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-07-08 16:49:21 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2018-07-09 18:08:40 +0200 |
commit | 8272ec50f02bd5277bdad09a98ddfc8c6d68a979 (patch) | |
tree | c7b0a15ed95a17b44ff30bf135473d8fda5235be | |
parent | 5bd8c389a3625e5c3eed265942d4c5b1e7e5d117 (diff) |
curl_setup: include <winerror.h> before <windows.h>
Otherwise, only part of it gets pulled in through <windows.h> on
original MinGW.
Fixes https://github.com/curl/curl/issues/2361
Closes https://github.com/curl/curl/pull/2721
-rw-r--r-- | lib/curl_setup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h index 9696a07d0..7c8518174 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -1,4 +1,4 @@ -#ifndef HEADER_CURL_SETUP_H +#ifndef HEADER_CURL_SETUP_H #define HEADER_CURL_SETUP_H /*************************************************************************** * _ _ ____ _ @@ -242,6 +242,7 @@ # if defined(_UNICODE) && !defined(UNICODE) # define UNICODE # endif +# include <winerror.h> # include <windows.h> # ifdef HAVE_WINSOCK2_H # include <winsock2.h> |