Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 8922238eda28e5e08b0a38cfb06949eb > files > 7

pjproject-2.5.5-4.1.mga6.src.rpm

Index: pjproject-2.3/pjlib/include/pj/config.h
===================================================================
--- pjproject-2.3.orig/pjlib/include/pj/config.h
+++ pjproject-2.3/pjlib/include/pj/config.h
@@ -172,6 +172,26 @@
 #   define PJ_IS_LITTLE_ENDIAN	1
 #   define PJ_IS_BIG_ENDIAN	0
 
+#elif defined (PJ_M_AARCH64) || defined(__aarch64__)
+    /*
+     * 64bit ARMv8 processor
+     */
+#   undef PJ_M_AARCH64
+#   define PJ_M_AARCH64		1
+#   define PJ_M_NAME		"aarch64"
+#   define PJ_HAS_PENTIUM	0
+#   if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
+#      if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+#         define PJ_IS_LITTLE_ENDIAN	1
+#         define PJ_IS_BIG_ENDIAN	0
+#      elif (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
+#         define PJ_IS_LITTLE_ENDIAN	0
+#         define PJ_IS_BIG_ENDIAN	1
+#      else
+#         error Endianness must be declared for this processor
+#      endif
+#   endif
+
 #elif defined(PJ_M_IA64) || defined(__ia64__) || defined(_IA64) || \
 	defined(__IA64__) || defined( 	_M_IA64)
     /*