Use SDL endian macros in libm.
authorDaniel Wyatt <Daniel.Wyatt@gmail.com>
Tue, 16 Nov 2010 13:24:55 -0500
changeset 4909fd40b483d489
parent 4908 9b9dc9fc7df2
child 4910 f205711f73d5
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
     1.1 --- a/src/libm/math_private.h	Tue Nov 16 07:44:47 2010 -0800
     1.2 +++ b/src/libm/math_private.h	Tue Nov 16 13:24:55 2010 -0500
     1.3 @@ -18,6 +18,7 @@
     1.4  #define _MATH_PRIVATE_H_
     1.5  
     1.6  /*#include <endian.h>*/
     1.7 +#include "SDL_endian.h"
     1.8  #include <sys/types.h>
     1.9  
    1.10  #define attribute_hidden
    1.11 @@ -46,8 +47,7 @@
    1.12   * For VFP, floats words follow the memory system mode.
    1.13   */
    1.14  
    1.15 -#if (__BYTE_ORDER == __BIG_ENDIAN) || \
    1.16 -    (!defined(__VFP_FP__) && (defined(__arm__) || defined(__thumb__)))
    1.17 +#if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
    1.18  
    1.19  typedef union
    1.20  {