diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-03-23 12:09:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-03-23 12:09:19 +0000 |
commit | d5861139f27c2e4ce1bc99ec8e1866d38d6e3859 (patch) | |
tree | 31fc2a05fa1396caf34edc5c105bacf9407e54dc /pjlib | |
parent | d726c567aa80b74317dcc0a26edebf71c8fd634b (diff) |
Ticket #750: back-porting ticket #749
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.0@2528 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__ */ + |