mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 22:23:03 +00:00
add ws2tcpip.h
This commit is contained in:
+2
-1
@@ -26,6 +26,7 @@ inline void CloseSocketProper(int TheSocket) {
|
|||||||
inline void CloseSocketProper(SOCKET TheSocket) {
|
inline void CloseSocketProper(SOCKET TheSocket) {
|
||||||
shutdown(TheSocket, 2); // 2 == SD_BOTH
|
shutdown(TheSocket, 2); // 2 == SD_BOTH
|
||||||
closesocket(TheSocket);
|
closesocket(TheSocket);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|
||||||
@@ -33,4 +34,4 @@ inline void CloseSocketProper(SOCKET TheSocket) {
|
|||||||
|
|
||||||
#if !defined(WIN32) && !defined(__unix)
|
#if !defined(WIN32) && !defined(__unix)
|
||||||
#error "OS not supported"
|
#error "OS not supported"
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user