]> granicus.if.org Git - curl/commitdiff
curl_setup: include <winerror.h> before <windows.h>
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 8 Jul 2018 14:49:21 +0000 (16:49 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 9 Jul 2018 16:08:40 +0000 (18:08 +0200)
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

lib/curl_setup.h

index 9696a07d0840d901b718c987195ab2e089d7797f..7c8518174b6cebc2a28414f559a170d93222334b 100644 (file)
@@ -1,4 +1,4 @@
-#ifndef HEADER_CURL_SETUP_H
+#ifndef HEADER_CURL_SETUP_H
 #define HEADER_CURL_SETUP_H
 /***************************************************************************
  *                                  _   _ ____  _
 #  if defined(_UNICODE) && !defined(UNICODE)
 #    define UNICODE
 #  endif
+#  include <winerror.h>
 #  include <windows.h>
 #  ifdef HAVE_WINSOCK2_H
 #    include <winsock2.h>