浏览代码

Prevent INVALID_SOCKET to be defined twice on linux (#1993)

i got an error because of this lol
pull/1994/head
MrSwedish 3 年前
committed by GitHub
父节点
当前提交
23fabb1d67
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      src/extras/rnet.h

+ 5
- 5
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
#endif // RNET_IMPLEMENTATION

正在加载...
取消
保存