digikam/digikam-5.1.0-gcc-6.1.patch

31 lines
771 B
Diff
Raw Normal View History

--- a/libs/rawengine/libraw/libraw/libraw_types.h
+++ b/libs/rawengine/libraw/libraw/libraw_types.h
@@ -612,10 +612,10 @@
#elif defined(__INTEL__)
#define LibRawBigEndian 0
-#elif defined(_M_IX86)
+#elif defined(_M_IX86) || defined(__i386__)
#define LibRawBigEndian 0
-#elif defined(_M_X64) || defined(__amd64__)
+#elif defined(_M_X64) || defined(__amd64__) || defined(__x86_64__)
#define LibRawBigEndian 0
#elif defined(__LITTLE_ENDIAN__)
@@ -625,6 +625,13 @@
#define LibRawBigEndian 1
#elif defined(_ARM_)
#define LibRawBigEndian 0
+
+#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#define LibRawBigEndian 0
+
+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#define LibRawBigEndian 1
+
#else
#ifndef qXCodeRez
#error Unable to figure out byte order.