summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2011-10-18 04:26:37 +0000
committerBenny Prijono <bennylp@teluu.com>2011-10-18 04:26:37 +0000
commite1ce62cbc652e7f86a22e519027fbca74f9170bf (patch)
treee1d093bdce43ffd247144c48e843d065594ce605
parentb4e7c10731f876d0e2748e6de85a56a63b2e1a91 (diff)
Set correct endianness for Windows Mobile and Symbian (re #1252, r3766)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3822 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjlib/include/pj/compat/os_symbian.h5
-rw-r--r--pjlib/include/pj/compat/os_win32_wince.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/pjlib/include/pj/compat/os_symbian.h b/pjlib/include/pj/compat/os_symbian.h
index 62bd3e9f..9f953648 100644
--- a/pjlib/include/pj/compat/os_symbian.h
+++ b/pjlib/include/pj/compat/os_symbian.h
@@ -108,6 +108,11 @@
# define NULL 0
#endif
+/* Endianness */
+#ifndef PJ_IS_LITTLE_ENDIAN
+# define PJ_IS_LITTLE_ENDIAN 1
+# define PJ_IS_BIG_ENDIAN 0
+#endif
/* Doesn't seem to allow more than this */
#define PJ_IOQUEUE_MAX_HANDLES 8
diff --git a/pjlib/include/pj/compat/os_win32_wince.h b/pjlib/include/pj/compat/os_win32_wince.h
index 043bb632..9ae05313 100644
--- a/pjlib/include/pj/compat/os_win32_wince.h
+++ b/pjlib/include/pj/compat/os_win32_wince.h
@@ -98,6 +98,12 @@
*/
#define PJ_SELECT_NEEDS_NFDS 0
+/* Endianness */
+#ifndef PJ_IS_LITTLE_ENDIAN
+# define PJ_IS_LITTLE_ENDIAN 1
+# define PJ_IS_BIG_ENDIAN 0
+#endif
+
/* Default threading is enabled, unless it's overridden. */
#ifndef PJ_HAS_THREADS
# define PJ_HAS_THREADS (1)