From 49ff9b1d0c7c4ffb20e8b92bd6f42549034eeceb Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 10 Sep 2006 08:53:59 +0000 Subject: Fixed autoconf on MacOS X git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@698 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/compat/m_auto.h.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pjlib/include') diff --git a/pjlib/include/pj/compat/m_auto.h.in b/pjlib/include/pj/compat/m_auto.h.in index c429019b..26259ecf 100644 --- a/pjlib/include/pj/compat/m_auto.h.in +++ b/pjlib/include/pj/compat/m_auto.h.in @@ -24,10 +24,20 @@ * @brief Automatically generated process definition file. */ +/* Machine name, filled in by autoconf script */ #undef PJ_M_NAME -#undef PJ_IS_LITTLE_ENDIAN -#undef PJ_IS_BIG_ENDIAN +/* Endianness, as detected by autoconf */ +#undef WORDS_BIGENDIAN + +#ifdef WORDS_BIGENDIAN +# define PJ_IS_LITTLE_ENDIAN 0 +# define PJ_IS_BIG_ENDIAN 1 +#else +# define PJ_IS_LITTLE_ENDIAN 1 +# define PJ_IS_BIG_ENDIAN 0 +#endif + /* Specify if floating point is present/desired */ #undef PJ_HAS_FLOATING_POINT -- cgit v1.2.3