Use lowercase includes under MinGW.

GitOrigin-RevId: e3d10420725def0b9b05ecea0aecfffaa2d13ce9
This commit is contained in:
levlam 2020-07-26 17:14:38 +03:00
parent 9ff056e77f
commit 2b685a2396
2 changed files with 17 additions and 4 deletions

View File

@ -33,11 +33,20 @@
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <WinSock2.h>
#include <WS2tcpip.h>
#ifdef __MINGW32__
#include <winsock2.h>
#include <ws2tcpip.h>
#include <mswsock.h>
#include <windows.h>
#else
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <MSWSock.h>
#include <Windows.h>
#endif
#include <MSWSock.h>
#include <Windows.h>
#undef ERROR
#endif
// clang-format on

View File

@ -45,7 +45,11 @@
#ifndef PSAPI_VERSION
#define PSAPI_VERSION 1
#endif
#ifdef __MINGW32__
#include <psapi.h>
#else
#include <Psapi.h>
#endif
#endif