FS-6695: fix build on mips

This commit is contained in:
Michael Jerris 2014-11-17 15:25:39 -05:00
parent 7c0da5cc40
commit 424df19083
2 changed files with 16 additions and 0 deletions

View File

@ -101,6 +101,18 @@
*/
#define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
#elif defined(__MIPSEB__)
/*
* mips, big endian
*/
#define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
#elif defined(__MIPSEL__)
/*
* mips, little endian
*/
#define ZRTP_BYTE_ORDER ZBO_LITTLE_ENDIAN
#endif /* Automatic byte order detection */
#endif

View File

@ -76,6 +76,10 @@
//#define WEBRTC_ARCH_ARMEL
#define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
#elif defined(__MIPSEB__)
#define WEBRTC_ARCH_BIG_ENDIAN
#elif defined(__MIPSEL__)
#define WEBRTC_ARCH_LITTLE_ENDIAN
#else
#error Please add support for your architecture in typedefs.h
#endif