Blame pjproject_fix_arm.patch
|
Jared K. Smith |
161751c |
--- a/pjlib/include/pj/config.h 2014-10-15 09:56:34.510724006 -0600
|
|
Jared K. Smith |
161751c |
+++ a/pjlib/include/pj/config.h 2014-10-19 13:46:46.071057753 -0600
|
|
Jared K. Smith |
161751c |
@@ -238,14 +238,22 @@
|
|
Jared K. Smith |
161751c |
#elif defined (PJ_M_ARMV4) || defined(ARM) || defined(_ARM_) || \
|
|
Jared K. Smith |
161751c |
defined(ARMV4) || defined(__arm__)
|
|
Jared K. Smith |
161751c |
/*
|
|
Jared K. Smith |
161751c |
- * ARM, bi-endian, so raise error if endianness is not configured
|
|
Jared K. Smith |
161751c |
+ * ARM, bi-endian, so raise error if endianness is not configured or detected
|
|
Jared K. Smith |
161751c |
*/
|
|
Jared K. Smith |
161751c |
# undef PJ_M_ARMV4
|
|
Jared K. Smith |
161751c |
# define PJ_M_ARMV4 1
|
|
Jared K. Smith |
161751c |
# define PJ_M_NAME "armv4"
|
|
Jared K. Smith |
161751c |
# define PJ_HAS_PENTIUM 0
|
|
Jared K. Smith |
161751c |
# if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
|
|
Jared K. Smith |
161751c |
-# error Endianness must be declared for this processor
|
|
Jared K. Smith |
161751c |
+# if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
|
|
Jared K. Smith |
161751c |
+# define PJ_IS_LITTLE_ENDIAN 1
|
|
Jared K. Smith |
161751c |
+# define PJ_IS_BIG_ENDIAN 0
|
|
Jared K. Smith |
161751c |
+# elif (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
|
Jared K. Smith |
161751c |
+# define PJ_IS_LITTLE_ENDIAN 0
|
|
Jared K. Smith |
161751c |
+# define PJ_IS_BIG_ENDIAN 1
|
|
Jared K. Smith |
161751c |
+# else
|
|
Jared K. Smith |
161751c |
+# error Endianness must be declared for this processor
|
|
Jared K. Smith |
161751c |
+# endif
|
|
Jared K. Smith |
161751c |
# endif
|
|
Jared K. Smith |
161751c |
|
|
Jared K. Smith |
161751c |
#elif defined (PJ_M_POWERPC) || defined(__powerpc) || defined(__powerpc__) || \
|
|
Jared K. Smith |
161751c |
|