[digikam] [Bug 366542] Build failure on i686
via KDE Bugzilla
bugzilla_noreply at kde.org
Tue Aug 9 15:56:14 BST 2016
https://bugs.kde.org/show_bug.cgi?id=366542
--- Comment #6 from caulier.gilles at gmail.com ---
It sound like the byte order test is changed with GCC :
https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
__BYTE_ORDER__
__ORDER_LITTLE_ENDIAN__
__ORDER_BIG_ENDIAN__
__ORDER_PDP_ENDIAN__
__BYTE_ORDER__ is defined to one of the values __ORDER_LITTLE_ENDIAN__,
__ORDER_BIG_ENDIAN__, or __ORDER_PDP_ENDIAN__ to reflect the layout of
multi-byte and multi-word quantities in memory. If __BYTE_ORDER__ is equal to
__ORDER_LITTLE_ENDIAN__ or __ORDER_BIG_ENDIAN__, then multi-byte and multi-word
quantities are laid out identically: the byte (word) at the lowest address is
the least significant or most significant byte (word) of the quantity,
respectively. If __BYTE_ORDER__ is equal to __ORDER_PDP_ENDIAN__, then bytes in
16-bit words are laid out in a little-endian fashion, whereas the 16-bit
subwords of a 32-bit quantity are laid out in big-endian fashion.
You should use these macros for testing like this:
/* Test for a little-endian machine */
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
Something like this must be add in rules from libraw_type.h
Gilles Caulier
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list