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;