From 230d061fb2c19dd0aedc91c8529db0a1ad94980f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 25 Jul 2013 22:24:53 -0700 Subject: [PATCH] When possible always use a runtime check for endian. --- util/text/utf16.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/util/text/utf16.h b/util/text/utf16.h index 174ec163e1..75f8b3ee02 100644 --- a/util/text/utf16.h +++ b/util/text/utf16.h @@ -2,14 +2,8 @@ #include "base/basictypes.h" -#if defined(__LITTLE_ENDIAN__) -#define UTF16_IS_LITTLE_ENDIAN 1 -#elif defined(__BIG_ENDIAN__) -#define UTF16_IS_LITTLE_ENDIAN 0 -#else // Should optimize out. #define UTF16_IS_LITTLE_ENDIAN (*(const uint16_t *)"\0\xff" >= 0x100) -#endif template uint16_t UTF16_Swap(uint16_t u) {