mirror of
https://github.com/curl/curl.git
synced 2026-04-17 00:31:40 +03:00
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
This commit is contained in:
parent
5bd8c389a3
commit
8272ec50f0
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue