diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-15 19:28:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-15 19:28:45 +0000 |
commit | a652799f707582f299d247fccb45fbc94331cdd7 (patch) | |
tree | 7d8733ef760f5f61323326e0b288e80e548f2428 /llvm/include | |
parent | a571e21c4edae565bf2110c4d22f152f51a35529 (diff) | |
download | bcm5719-llvm-a652799f707582f299d247fccb45fbc94331cdd7.tar.gz bcm5719-llvm-a652799f707582f299d247fccb45fbc94331cdd7.zip |
Fix endianness on some MSVC versions.
Looks like it was evaluating undef == undef to true.
llvm-svn: 179549
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Support/Host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Host.h b/llvm/include/llvm/Support/Host.h index 103a7eb0367..cba60928908 100644 --- a/llvm/include/llvm/Support/Host.h +++ b/llvm/include/llvm/Support/Host.h @@ -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; |