File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
src/borg/algorithms/msgpack Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -66,18 +66,9 @@ typedef unsigned int _msgpack_atomic_counter_t;
6666#endif
6767
6868#if !defined(__LITTLE_ENDIAN__ ) && !defined(__BIG_ENDIAN__ )
69- /*
70- * __BYTE_ORDER, __LITTLE_ENDIAN and __BIG_ENDIAN are nonstandard and not
71- * always available. In those cases, fallback to common compiler defines.
72- */
73- #if !defined(__BYTE_ORDER )
74- #define __BYTE_ORDER __BYTE_ORDER__
75- #define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
76- #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__
77- #endif
78- #if __BYTE_ORDER == __LITTLE_ENDIAN
69+ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
7970#define __LITTLE_ENDIAN__
80- #elif __BYTE_ORDER == __BIG_ENDIAN
71+ #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
8172#define __BIG_ENDIAN__
8273#elif _WIN32
8374#define __LITTLE_ENDIAN__
You can’t perform that action at this time.
0 commit comments