add ws2tcpip.h

This commit is contained in:
Lion Kortlepel
2021-07-29 12:02:49 +02:00
parent a7f2f85e45
commit 95c036836e

View File

@@ -26,6 +26,7 @@ inline void CloseSocketProper(int TheSocket) {
inline void CloseSocketProper(SOCKET TheSocket) {
shutdown(TheSocket, 2); // 2 == SD_BOTH
closesocket(TheSocket);
}
#endif // WIN32
@@ -33,4 +34,4 @@ inline void CloseSocketProper(SOCKET TheSocket) {
#if !defined(WIN32) && !defined(__unix)
#error "OS not supported"
#endif
#endif