Endianness test

This commit is contained in:
cpq committed 2022-11-09 09:20:15 +00:00
1 parent e580d4e637
commit 28a4778187
7 files changed
+55 -65

No files matched your search

+2
View File
@@ -66,8 +66,10 @@ typedef unsigned long nfds_t;
#define MG_SOCKET_ERRNO WSAGetLastError()
#if defined(_MSC_VER)
#pragma comment(lib, "ws2_32.lib")
#ifndef alloca
#define alloca(a) _alloca(a)
#endif
#endif
#define poll(a, b, c) WSAPoll((a), (b), (c))
#ifndef SO_EXCLUSIVEADDRUSE
#define SO_EXCLUSIVEADDRUSE ((int) (~SO_REUSEADDR))