From 23fabb1d67515c41984bb31daabb3d3b3f6c88a3 Mon Sep 17 00:00:00 2001 From: MrSwedish <84625713+MrSwedish@users.noreply.github.com> Date: Fri, 17 Sep 2021 01:05:38 +0200 Subject: [PATCH] Prevent INVALID_SOCKET to be defined twice on linux (#1993) i got an error because of this lol --- src/extras/rnet.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/extras/rnet.h b/src/extras/rnet.h index 439b105a..fe9ea971 100644 --- a/src/extras/rnet.h +++ b/src/extras/rnet.h @@ -155,10 +155,6 @@ typedef int socklen_t; #include #endif -#ifndef INVALID_SOCKET - #define INVALID_SOCKET ~(0) -#endif - #ifndef __USE_W32_SOCKETS #define closesocket close #define SOCKET int @@ -166,6 +162,10 @@ typedef int socklen_t; #define SOCKET_ERROR -1 #endif +#ifndef INVALID_SOCKET + #define INVALID_SOCKET ~(0) +#endif + #ifdef __USE_W32_SOCKETS #ifndef EINTR #define EINTR WSAEINTR @@ -2253,4 +2253,4 @@ uint64_t PacketRead64(Packet *packet) return value; } -#endif // RNET_IMPLEMENTATION \ No newline at end of file +#endif // RNET_IMPLEMENTATION