summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/compat
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-09-10 08:53:59 +0000
committerBenny Prijono <bennylp@teluu.com>2006-09-10 08:53:59 +0000
commit49ff9b1d0c7c4ffb20e8b92bd6f42549034eeceb (patch)
tree63e25042923b2af3e00a7126c81f2138ca7916e5 /pjlib/include/pj/compat
parentb5f420650add6f06c58d981685468761d74022cf (diff)
Fixed autoconf on MacOS X
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@698 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/compat')
-rw-r--r--pjlib/include/pj/compat/m_auto.h.in14
1 files changed, 12 insertions, 2 deletions
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