Fixed windows build not compiling

This commit is contained in:
Anonymous275 authored and Anonymous275 committed 2021-03-18 23:44:14 +02:00
1 parent f13523fbe5
commit 218504e674
9 files changed
+32 -9

No files matched your search

+3 -3
View File
@@ -22,10 +22,10 @@ inline void CloseSocketProper(int socket) {
#ifdef WIN32
#include <conio.h>
#include <windows.h>
#include <winsock2.h>
inline void CloseSocketProper(int socket) {
shutdown(socket, SHUT_RDWR);
close(socket);
shutdown(socket, SD_BOTH);
closesocket(socket);
}
#endif // WIN32