Convert 'struct' to 'class' in various places to adhere to the coding standards
[oota-llvm.git] / include / llvm / Support / DataTypes.h.in
index 9da54239469870d6cca25f782a96bb7a0b57c818..4fc2d079ae44c8a0b1fb1b6c70ff14eab544a0c7 100644 (file)
 #include <stdint.h>
 #endif
 
-#if defined(_POWER) && defined(_AIX)
-// GCC is strict about defining large constants: they must have LL modifier.
-// We will catch INT64_MAX in the default case below.
-#undef INT64_MAX
-// AIX #defines INT64_MIN as (-INT64_MAX-1), or -9223372036854775808 which GCC
-// complains about as `integer constant is so large that it is unsigned', so
-// set INT64_MIN to be one above that:
-#undef INT64_MIN
-#define INT64_MIN -9223372036854775807LL
+#ifdef _AIX
+#include "llvm/Support/AIXDataTypesFix.h"
 #endif
 
 // Handle incorrect definition of uint64_t as u_int64_t
@@ -92,6 +85,9 @@ typedef signed   int ssize_t;
 #if !defined(INT64_MAX)
 # define INT64_MAX 9223372036854775807LL
 #endif
+#if !defined(INT64_MIN)
+# define INT64_MIN ((-INT64_MAX)-1)
+#endif
 #if !defined(UINT64_MAX)
 # define UINT64_MAX 0xffffffffffffffffULL
 #endif