mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-08 19:06:27 +00:00
Prevent INVALID_SOCKET to be defined twice on linux (#1993)
i got an error because of this lol
This commit is contained in:
@@ -155,10 +155,6 @@ typedef int socklen_t;
|
|||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef INVALID_SOCKET
|
|
||||||
#define INVALID_SOCKET ~(0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __USE_W32_SOCKETS
|
#ifndef __USE_W32_SOCKETS
|
||||||
#define closesocket close
|
#define closesocket close
|
||||||
#define SOCKET int
|
#define SOCKET int
|
||||||
@@ -166,6 +162,10 @@ typedef int socklen_t;
|
|||||||
#define SOCKET_ERROR -1
|
#define SOCKET_ERROR -1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef INVALID_SOCKET
|
||||||
|
#define INVALID_SOCKET ~(0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __USE_W32_SOCKETS
|
#ifdef __USE_W32_SOCKETS
|
||||||
#ifndef EINTR
|
#ifndef EINTR
|
||||||
#define EINTR WSAEINTR
|
#define EINTR WSAEINTR
|
||||||
|
Reference in New Issue
Block a user