aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-13 22:18:26 +0000
committerChris Lattner <sabre@nondot.org>2002-09-13 22:18:26 +0000
commitdbc436cb07c4b1f353331f350dfe6ca58604b51c (patch)
tree25215dee65365e3855105f3e1bf9f4ad8db52c90
parent4bb13b8eb1bf3314894c8d388770a6bc2665f6fb (diff)
Tighten up sanity checking
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3706 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/Support/DataTypes.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/Support/DataTypes.h b/include/Support/DataTypes.h
index 66967619fc..063c464457 100644
--- a/include/Support/DataTypes.h
+++ b/include/Support/DataTypes.h
@@ -35,10 +35,8 @@
#endif
#endif
-#ifndef LITTLE_ENDIAN
-#if !defined(BIG_ENDIAN) || !defined(INT64_MAX)
+#if (!defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)) || !defined(INT64_MAX)
#error "include/Support/DataTypes.h could not determine endianness!"
#endif
-#endif
#endif /* LLVM_SUPPORT_DATATYPES_H */