From 92b0d0ec4f9fa33de80373de504b00fef06f5be1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 15 Apr 2013 19:28:45 +0000 Subject: [PATCH] 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 --- include/llvm/Support/Host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1