Use lowercase includes under MinGW.
GitOrigin-RevId: e3d10420725def0b9b05ecea0aecfffaa2d13ce9
This commit is contained in:
parent
9ff056e77f
commit
2b685a2396
@ -33,11 +33,20 @@
|
|||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <WinSock2.h>
|
#ifdef __MINGW32__
|
||||||
#include <WS2tcpip.h>
|
#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
|
#undef ERROR
|
||||||
#endif
|
#endif
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
@ -45,7 +45,11 @@
|
|||||||
#ifndef PSAPI_VERSION
|
#ifndef PSAPI_VERSION
|
||||||
#define PSAPI_VERSION 1
|
#define PSAPI_VERSION 1
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
#include <psapi.h>
|
||||||
|
#else
|
||||||
#include <Psapi.h>
|
#include <Psapi.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user