diff --git a/Common/Net/HTTPClient.cpp b/Common/Net/HTTPClient.cpp index 7193582fa5..1c13d95f90 100644 --- a/Common/Net/HTTPClient.cpp +++ b/Common/Net/HTTPClient.cpp @@ -4,13 +4,18 @@ #include "Common/StringUtils.h" #ifndef _WIN32 +#include #include #include #include #include +#include #include #define closesocket close #else +#ifndef NOMINMAX +#define NOMINMAX +#endif #include #include #include diff --git a/Common/Net/HTTPClient.h b/Common/Net/HTTPClient.h index 731ff75dd5..d76e57d1b9 100644 --- a/Common/Net/HTTPClient.h +++ b/Common/Net/HTTPClient.h @@ -7,19 +7,6 @@ #include "Common/Net/Resolve.h" -#ifdef _WIN32 -#ifndef NOMINMAX -#define NOMINMAX -#endif -#include -#include -#else -#include -#include -#include -#include -#endif - #include "Common/Buffer.h" namespace net { diff --git a/Core/Util/GameManager.cpp b/Core/Util/GameManager.cpp index 17b2e75751..3e0c618b0e 100644 --- a/Core/Util/GameManager.cpp +++ b/Core/Util/GameManager.cpp @@ -28,6 +28,9 @@ #else #include "ext/libzip/zip.h" #endif +#ifdef _WIN32 +#include "Common/CommonWindows.h" +#endif #include "Common/Data/Encoding/Utf8.h" #include "Common/Data/Format/IniFile.h" #include "Common/Log.h"