From 5725717e2950d45f45af53284dd0bd670d010b55 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 12 Aug 2021 11:47:38 +0200 Subject: [PATCH] possible windows compiler fix, again --- include/Compat.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/Compat.h b/include/Compat.h index dfd6262..268ea77 100644 --- a/include/Compat.h +++ b/include/Compat.h @@ -7,10 +7,6 @@ #include #include #include -using SOCKET = int; -using DWORD = unsigned long; -using PDWORD = unsigned long*; -using LPDWORD = unsigned long*; char _getch(); inline void CloseSocketProper(int TheSocket) { shutdown(TheSocket, SHUT_RDWR); @@ -21,6 +17,8 @@ inline void CloseSocketProper(int TheSocket) { // ======================= WIN32 ======================= #ifdef WIN32 +#include +#include inline void CloseSocketProper(SOCKET TheSocket) { shutdown(TheSocket, 2); // 2 == SD_BOTH closesocket(TheSocket);