From a0dff23c26a0e6f5187efbb4eba8b4f94882d64b Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 12 Jan 2019 04:53:05 +0100 Subject: [PATCH] Remove extra handling for big endian The detection for big endian seems to work. But the special handling for big endian is wrong. Only without it tests pass under ppc64. Tested with Tumbleweed ppc64 image ran within qemu-system-ppc64. --- conversion/binaryconversion.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/conversion/binaryconversion.h b/conversion/binaryconversion.h index dc5de41..64833a2 100644 --- a/conversion/binaryconversion.h +++ b/conversion/binaryconversion.h @@ -79,11 +79,7 @@ namespace ConversionUtilities { */ namespace BE { -#if defined(CONVERSION_UTILITIES_BYTE_ORDER_LITTLE_ENDIAN) #define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 0 -#elif defined(CONVERSION_UTILITIES_BYTE_ORDER_BIG_ENDIAN) -#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 1 -#endif #include "./binaryconversionprivate.h" #undef CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL } // namespace BE @@ -94,11 +90,7 @@ namespace BE { */ namespace LE { -#if defined(CONVERSION_UTILITIES_BYTE_ORDER_LITTLE_ENDIAN) #define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 1 -#elif defined(CONVERSION_UTILITIES_BYTE_ORDER_BIG_ENDIAN) -#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 0 -#endif #include "./binaryconversionprivate.h" #undef CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL } // namespace LE