Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lua/usocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Wait for readable/writable/connected socket with timeout
\*-------------------------------------------------------------------------*/
#ifndef SOCKET_SELECT
#include <sys/poll.h>
#include <poll.h>

#define WAITFD_R POLLIN
#define WAITFD_W POLLOUT
Expand Down Expand Up @@ -455,4 +455,4 @@ const char *socket_gaistrerror(int err) {
}
}

#endif
#endif
8 changes: 5 additions & 3 deletions Utilities/CRC32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ extern const uint32_t Crc32Lookup[MaxSlice][256];
// define endianess and some integer data types
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__aarch64__)
// Windows always little endian
#define __BYTE_ORDER __LITTLE_ENDIAN
#ifndef __BYTE_ORDER
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
#else
// defines __BYTE_ORDER as __LITTLE_ENDIAN or __BIG_ENDIAN
#if defined(__APPLE__) || defined(HAVE_LIBNX)
Expand All @@ -30,7 +32,7 @@ extern const uint32_t Crc32Lookup[MaxSlice][256];
#endif
#endif

#if !defined(__BYTE_ORDER)
#ifndef __BYTE_ORDER
//Default to little endian when the symbol is not defined
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
Expand Down Expand Up @@ -695,4 +697,4 @@ const uint32_t Crc32Lookup[MaxSlice][256] =
0xF088C1A2,0x5EE05033,0x7728E4C1,0xD9407550,0x24B98D25,0x8AD11CB4,0xA319A846,0x0D7139D7,
}
};
// clang-format on
// clang-format on
Loading