diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-26 16:15:18 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-10-26 16:15:18 +0000 |
commit | e757752e39a9584ee6fb4017db7bef58cfd7e8f1 (patch) | |
tree | 762111ef1c5432d4bf78d892d57a14f03d55979b /include | |
parent | 84d17fea638c13eb015cd26b873f261b0a251b5c (diff) | |
download | external_llvm-e757752e39a9584ee6fb4017db7bef58cfd7e8f1.zip external_llvm-e757752e39a9584ee6fb4017db7bef58cfd7e8f1.tar.gz external_llvm-e757752e39a9584ee6fb4017db7bef58cfd7e8f1.tar.bz2 |
* DataTypesFix.h moved to AIXDataTypesFix.h
* Condition #inclusion of AIXDataTypes.h on the _AIX preprocessor symbol to
prevent extra I/O on non-AIX systems. Thus, no #ifdef in AIXDataTypes.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/AIXDataTypesFix.h (renamed from include/llvm/Support/DataTypesFix.h) | 16 | ||||
-rw-r--r-- | include/llvm/Support/DataTypes.h.in | 5 |
2 files changed, 9 insertions, 12 deletions
diff --git a/include/llvm/Support/DataTypesFix.h b/include/llvm/Support/AIXDataTypesFix.h index c73998d..36b4488 100644 --- a/include/llvm/Support/DataTypesFix.h +++ b/include/llvm/Support/AIXDataTypesFix.h @@ -1,4 +1,4 @@ -//===-- include/Support/DataTypesFix.h - Fix datatype defs ------*- C++ -*-===// +//===-- include/Support/AIXDataTypesFix.h - Fix datatype defs ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -13,17 +13,13 @@ // //===----------------------------------------------------------------------===// -#ifndef SUPPORT_DATATYPESFIX_H -#define SUPPORT_DATATYPESFIX_H +// No include guards desired! -#include "llvm/Config/config.h" +#ifndef SUPPORT_DATATYPES_H +#error "AIXDataTypesFix.h must only be included via DataTypes.h!" +#endif -#if defined(_POWER) && defined(_AIX) // GCC is strict about defining large constants: they must have LL modifier. +// These will be defined properly at the end of DataTypes.h #undef INT64_MAX -#define INT64_MAX 9223372036854775807LL #undef INT64_MIN -#define INT64_MIN (-INT64_MAX-1) -#endif - -#endif /* SUPPORT_DATATYPESFIX_H */ diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in index f5467b2..4fc2d07 100644 --- a/include/llvm/Support/DataTypes.h.in +++ b/include/llvm/Support/DataTypes.h.in @@ -49,8 +49,9 @@ #include <stdint.h> #endif -// Fix AIX definitions of INT64_{MIN,MAX} -#include "llvm/Support/DataTypesFix.h" +#ifdef _AIX +#include "llvm/Support/AIXDataTypesFix.h" +#endif // Handle incorrect definition of uint64_t as u_int64_t #ifndef HAVE_UINT64_T |