mirror of
https://github.com/curl/curl.git
synced 2026-07-23 10:47:17 +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
|
#define HEADER_CURL_SETUP_H
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* _ _ ____ _
|
* _ _ ____ _
|
||||||
|
|
@ -242,6 +242,7 @@
|
||||||
# if defined(_UNICODE) && !defined(UNICODE)
|
# if defined(_UNICODE) && !defined(UNICODE)
|
||||||
# define UNICODE
|
# define UNICODE
|
||||||
# endif
|
# endif
|
||||||
|
# include <winerror.h>
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# ifdef HAVE_WINSOCK2_H
|
# ifdef HAVE_WINSOCK2_H
|
||||||
# include <winsock2.h>
|
# include <winsock2.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue