Fix endianness on some MSVC versions.

Looks like it was evaluating undef == undef to true.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2013-04-15 19:28:45 +00:00
parent 9a256300f8
commit 92b0d0ec4f

View File

@ -29,7 +29,7 @@
namespace llvm {
namespace sys {
#if BYTE_ORDER == BIG_ENDIAN
#if defined(BYTBYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
static const bool IsBigEndianHost = true;
#else
static const bool IsBigEndianHost = false;