From d38fcaf80ac5c4b1a2da51b5d1a605ed408a192f Mon Sep 17 00:00:00 2001 From: iSage Date: Fri, 24 May 2019 14:48:35 +0300 Subject: [PATCH] Use SDL endian detection --- src/common/misc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/misc.cpp b/src/common/misc.cpp index 8b3782dc..91282e39 100644 --- a/src/common/misc.cpp +++ b/src/common/misc.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #if defined(_WIN32) #include #endif @@ -17,7 +18,7 @@ void stat(const char *fmt, ...); -#if __BYTE_ORDER == __LITTLE_ENDIAN +#if SDL_BYTEORDER == SDL_LIL_ENDIAN uint16_t fgeti(FILE *fp) { uint16_t value;