From e1ce62cbc652e7f86a22e519027fbca74f9170bf Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 18 Oct 2011 04:26:37 +0000 Subject: 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 --- pjlib/include/pj/compat/os_symbian.h | 5 +++++ pjlib/include/pj/compat/os_win32_wince.h | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'pjlib/include') 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) -- cgit v1.2.3