[Kde-imaging] [Bug 301027] New: Debian #670454 digikam: FTBFS on mips ("dng_flags.h error: #error Unable to figure out byte order.")

Mark Purcell msp at debian.org
Sat Jun 2 04:52:06 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=301027

            Bug ID: 301027
          Severity: normal
           Version: 2.6.0
          Priority: NOR
          Assignee: kde-imaging at kde.org
           Summary: Debian #670454 digikam: FTBFS on mips ("dng_flags.h
                    error: #error Unable to figure out byte order.")
    Classification: Unclassified
                OS: Linux
          Reporter: msp at debian.org
          Hardware: Debian unstable
            Status: UNCONFIRMED
         Component: DngConverter
           Product: kipiplugins

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670454


From: Modestas Vainius <modax at debian.org>
Subject: Improve big/little endian detection in dngconverter.
Origin: vendor

__BYTE_ORDER__ is a standard GNU C macro [1]. Neither of other checks passes on
s390 causing a FTBFS.

[1] http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

--- a/extra/kipi-plugins/dngconverter/dngwriter/extra/dng_sdk/dng_flags.h
+++ b/extra/kipi-plugins/dngconverter/dngwriter/extra/dng_sdk/dng_flags.h
@@ -91,6 +91,14 @@
 #elif defined(__BIG_ENDIAN__)
 #define qDNGBigEndian 1

+#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \
+    __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#define qDNGBigEndian 1
+
+#elif defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && \
+    __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#define qDNGBigEndian 0
+
 #else

 #ifndef qXCodeRez

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-imaging mailing list