summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMrSwedish <[email protected]>2021-09-17 01:05:38 +0200
committerGitHub <[email protected]>2021-09-17 01:05:38 +0200
commit23fabb1d67515c41984bb31daabb3d3b3f6c88a3 (patch)
tree738e4bdc4798097470d113458ed364e5a1964da5 /src
parente9d3d4fa1fa8220ccc7c5e43a4f62f8530c8306d (diff)
downloadraylib-23fabb1d67515c41984bb31daabb3d3b3f6c88a3.tar.gz
raylib-23fabb1d67515c41984bb31daabb3d3b3f6c88a3.zip
Prevent INVALID_SOCKET to be defined twice on linux (#1993)
i got an error because of this lol
Diffstat (limited to 'src')
-rw-r--r--src/extras/rnet.h10
1 files 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 <arpa/inet.h>
#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