Unverified Commit 8272ec50 authored by Marcel Raad's avatar Marcel Raad
Browse files

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
parent 5bd8c389
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
#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>