diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-03-13 12:15:43 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-03-13 12:15:43 +0000 |
commit | 87e7c10c51282edde56fd891d4ad24566982adea (patch) | |
tree | 26a9ec6321311aeb9d62b93cb2aa7b4b6a44895e /pjlib | |
parent | b79f3896fd23cdd0d96c9af84525455f416dfa87 (diff) |
Ticket #729: MacOS X endianness detection on universal build (thanks Ruud Klaver for the patch)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2510 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/include/pj/compat/m_auto.h.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pjlib/include/pj/compat/m_auto.h.in b/pjlib/include/pj/compat/m_auto.h.in index 5324fe2e..79330b9b 100644 --- a/pjlib/include/pj/compat/m_auto.h.in +++ b/pjlib/include/pj/compat/m_auto.h.in @@ -28,8 +28,18 @@ /* Machine name, filled in by autoconf script */ #undef PJ_M_NAME -/* Endianness, as detected by autoconf */ -#undef WORDS_BIGENDIAN +/* Endianness. It's reported on pjsip list on 09/02/13 that autoconf + * endianness detection failed for universal build, so special case + * for it here. Thanks Ruud Klaver for the fix. + */ +#ifdef PJ_DARWINOS +# ifdef __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else + /* Endianness, as detected by autoconf */ +# undef WORDS_BIGENDIAN +#endif #ifdef WORDS_BIGENDIAN # define PJ_IS_LITTLE_ENDIAN 0 @@ -47,3 +57,4 @@ #define PJ_HAS_PENTIUM 0 #endif /* __PJ_COMPAT_M_AUTO_H__ */ + |