Use SDL endian macros in libm.

This fixes problems (specifically with SDL_floor) for systems where __BYTE_ORDER is not defined.
This commit is contained in:
Daniel Wyatt 2010-11-16 13:24:55 -05:00
parent 26288db841
commit 8cc72d1d79

View file

@ -18,6 +18,7 @@
#define _MATH_PRIVATE_H_ #define _MATH_PRIVATE_H_
/*#include <endian.h>*/ /*#include <endian.h>*/
#include "SDL_endian.h"
#include <sys/types.h> #include <sys/types.h>
#define attribute_hidden #define attribute_hidden
@ -46,8 +47,7 @@ typedef unsigned int u_int32_t;
* For VFP, floats words follow the memory system mode. * For VFP, floats words follow the memory system mode.
*/ */
#if (__BYTE_ORDER == __BIG_ENDIAN) || \ #if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
(!defined(__VFP_FP__) && (defined(__arm__) || defined(__thumb__)))
typedef union typedef union
{ {