Move code to redefine INT64_{MIN,MAX} on AIX/PowerPC to a separate header,
[oota-llvm.git] / include / llvm / Support / DataTypesFix.h
1 //===-- include/Support/DataTypesFix.h - Fix datatype defs ------*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file overrides default system-defined types and limits which cannot be
11 // done in DataTypes.h.in because it is processed by autoheader first, which
12 // comments out any #undef statement
13 //
14 //===----------------------------------------------------------------------===//
15
16 #ifndef SUPPORT_DATATYPESFIX_H
17 #define SUPPORT_DATATYPESFIX_H
18
19 #include "llvm/Config/config.h"
20
21 #if defined(_POWER) && defined(_AIX)
22 // GCC is strict about defining large constants: they must have LL modifier.
23 #undef INT64_MAX
24 #define INT64_MAX 9223372036854775807LL
25 #undef INT64_MIN
26 #define INT64_MIN (-INT64_MAX-1) 
27 #endif
28
29 #endif  /* SUPPORT_DATATYPESFIX_H */