[Commits] SDL: Use SDL endian macros in libm.

libsdl.org revision control commits-owner at libsdl.org
Tue Nov 16 10:25:42 PST 2010


details:   http://hg.libsdl.org/SDL/rev/fd40b483d489
changeset: 4909:fd40b483d489
user:      Daniel Wyatt <Daniel.Wyatt at gmail.com>
date:      Tue Nov 16 13:24:55 2010 -0500
description:
Use SDL endian macros in libm.
This fixes problems (specifically with SDL_floor) for systems where __BYTE_ORDER is not defined.

diffstat:

 src/libm/math_private.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git a/src/libm/math_private.h b/src/libm/math_private.h
--- a/src/libm/math_private.h
+++ b/src/libm/math_private.h
@@ -18,6 +18,7 @@
 #define _MATH_PRIVATE_H_
 
 /*#include <endian.h>*/
+#include "SDL_endian.h"
 #include <sys/types.h>
 
 #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
 {


More information about the commits mailing list