Mac build fix (weird, BIG_ENDIAN really shouldn't be defined)

This commit is contained in:
Henrik Rydgård 2013-07-25 19:21:43 +02:00
parent 61351e4b59
commit 9fc57894ab
2 changed files with 13 additions and 1 deletions

View file

@ -28,6 +28,17 @@
#endif
#endif
// Seriously, WTF?
#ifdef __APPLE__
#ifdef BIG_ENDIAN
#undef BIG_ENDIAN
#endif
#ifdef __BIG_ENDIAN__
#undef __BIG_ENDIAN__
#endif
#endif
#ifdef _WIN32
typedef unsigned __int8 u8;

View file

@ -108,7 +108,8 @@ struct Glyph {
u32 ptr;
};
#if !defined(BIG_ENDIAN) && !defined(__BIG_ENDIAN__)
// Bizarre that we need __APPLE__ here.
#if defined(__APPLE__) || !defined(BIG_ENDIAN) && !defined(__BIG_ENDIAN__)
typedef FontPixelFormat FontPixelFormat_le;
#else
error FIX ME