Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Use SDL endian macros in libm.
Browse files Browse the repository at this point in the history
This fixes problems (specifically with SDL_floor) for systems where __BYTE_ORDER is not defined.
  • Loading branch information
Daniel Wyatt authored and Daniel Wyatt committed Nov 16, 2010
1 parent 15f18f2 commit 6422b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libm/math_private.h
Expand Up @@ -18,6 +18,7 @@
#define _MATH_PRIVATE_H_

/*#include <endian.h>*/
#include "SDL_endian.h"
#include <sys/types.h>

#define attribute_hidden
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 6422b59

Please sign in to comment.