aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Host.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-15 19:28:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-15 19:28:45 +0000
commit92b0d0ec4f9fa33de80373de504b00fef06f5be1 (patch)
tree73cc9731cddb58ab2bd27110581abe13e80d4ce9 /include/llvm/Support/Host.h
parent9a256300f8f61937f5f7a148b9cb09936d103a97 (diff)
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
Diffstat (limited to 'include/llvm/Support/Host.h')
-rw-r--r--include/llvm/Support/Host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h
index 103a7eb036..cba6092890 100644
--- a/include/llvm/Support/Host.h
+++ b/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;