Fix endianness on some MSVC versions.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 15 Apr 2013 19:28:45 +0000 (19:28 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 15 Apr 2013 19:28:45 +0000 (19:28 +0000)
Looks like it was evaluating undef == undef to true.

llvm-svn: 179549

llvm/include/llvm/Support/Host.h

index 103a7eb..cba6092 100644 (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;