From f42efdb2e0b6f76149f3a08fd53835b480755773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Wed, 20 Nov 2019 14:58:46 +0100 Subject: [PATCH] Use better endianness check (by @heckflosse) --- rtengine/canon_cr3_decoder.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rtengine/canon_cr3_decoder.cc b/rtengine/canon_cr3_decoder.cc index f10a7c083..248cdd294 100644 --- a/rtengine/canon_cr3_decoder.cc +++ b/rtengine/canon_cr3_decoder.cc @@ -625,11 +625,11 @@ libraw_inline void _BitScanReverse(DWORD *Index, unsigned long Mask) } uint32_t _byteswap_ulong(uint32_t x) { - #if BYTE_ORDER == BIG_ENDIAN - return x; - #else - return __builtin_bswap32(x); - #endif +#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + return x; +#else + return __builtin_bswap32(x); +#endif } #endif