# HG changeset patch # User Daniel Wyatt # Date 1289931895 18000 # Node ID fd40b483d4890b77743e61a7c2dab8b00ade799b # Parent 9b9dc9fc7df2962acea6acbad32949f5679632f8 Use SDL endian macros in libm. This fixes problems (specifically with SDL_floor) for systems where __BYTE_ORDER is not defined. diff -r 9b9dc9fc7df2 -r fd40b483d489 src/libm/math_private.h --- a/src/libm/math_private.h Tue Nov 16 07:44:47 2010 -0800 +++ b/src/libm/math_private.h Tue Nov 16 13:24:55 2010 -0500 @@ -18,6 +18,7 @@ #define _MATH_PRIVATE_H_ /*#include */ +#include "SDL_endian.h" #include #define attribute_hidden @@ -46,8 +47,7 @@ * 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 {