Prevent INVALID_SOCKET to be defined twice on linux (#1993)
i got an error because of this lol
This commit is contained in:
parent
e9d3d4fa1f
commit
23fabb1d67
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue