From 5ba28f0aaff0df3a215cdc53455f2389ac122354 Mon Sep 17 00:00:00 2001 From: Sour Date: Fri, 7 Feb 2020 19:06:49 -0500 Subject: [PATCH] Libretro: Fixed compilation error on macos/ios --- Utilities/CRC32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/CRC32.cpp b/Utilities/CRC32.cpp index 88fce9fc..ebd9d244 100644 --- a/Utilities/CRC32.cpp +++ b/Utilities/CRC32.cpp @@ -28,9 +28,9 @@ extern const uint32_t Crc32Lookup[MaxSlice][256]; #endif #endif -// abort if byte order is undefined #if !defined(__BYTE_ORDER) -#error undefined byte order, compile with -D__BYTE_ORDER=1234 (if little endian) or -D__BYTE_ORDER=4321 (big endian) +//Default to little endian when the symbol is not defined +#define __BYTE_ORDER __LITTLE_ENDIAN #endif uint32_t CRC32::GetCRC(uint8_t *buffer, std::streamoff length)