From: Rafael Espindola Date: Mon, 15 Apr 2013 19:28:45 +0000 (+0000) Subject: Fix endianness on some MSVC versions. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=92b0d0ec4f9fa33de80373de504b00fef06f5be1;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h index 103a7eb0367..cba60928908 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;