From 6422b59240e89be1fe50aa03e53faea75e4e9c3c Mon Sep 17 00:00:00 2001 From: Daniel Wyatt Date: Tue, 16 Nov 2010 13:24:55 -0500 Subject: [PATCH] Use SDL endian macros in libm. This fixes problems (specifically with SDL_floor) for systems where __BYTE_ORDER is not defined. --- src/libm/math_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libm/math_private.h b/src/libm/math_private.h index 6698c892b..63c98bf61 100644 --- a/src/libm/math_private.h +++ b/src/libm/math_private.h @@ -18,6 +18,7 @@ #define _MATH_PRIVATE_H_ /*#include */ +#include "SDL_endian.h" #include #define attribute_hidden @@ -46,8 +47,7 @@ typedef unsigned int u_int32_t; * For VFP, floats words follow the memory system mode. */ -#if (__BYTE_ORDER == __BIG_ENDIAN) || \ - (!defined(__VFP_FP__) && (defined(__arm__) || defined(__thumb__))) +#if (SDL_BYTEORDER == SDL_BIG_ENDIAN) typedef union {