If we can't find INT64_MAX, set it to a reasonable default value,
authorBrian Gaeke <gaeke@uiuc.edu>
Mon, 11 Aug 2003 20:04:57 +0000 (20:04 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Mon, 11 Aug 2003 20:04:57 +0000 (20:04 +0000)
instead of printing out an (incorrect) #error message.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7744 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/DataTypes.h

index 2f6724c4fb9169f5934567b816e611bd3049d828..84f3c2b35661ae7fc43351ea802f38143bc07af0 100644 (file)
 #error "Cannot define both ENDIAN_LITTLE and ENDIAN_BIG!"
 #endif
 
-#if (!defined(ENDIAN_LITTLE) && !defined(ENDIAN_BIG)) || !defined(INT64_MAX)
+#if (!defined(ENDIAN_LITTLE) && !defined(ENDIAN_BIG))
 #error "include/Support/DataTypes.h could not determine endianness!"
 #endif
 
+#if !defined(INT64_MAX)
+/* We couldn't determine INT64_MAX; default it. */
+#define INT64_MAX 9223372036854775807LL
+#endif
+#if !defined(UINT64_MAX)
+#define UINT64_MAX 0xffffffffffffffffULL
+#endif
+
 #endif  /* SUPPORT_DATATYPES_H */