forked from OSchip/llvm-project
* 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 llvm-svn: 17257
This commit is contained in:
parent
d73c8428f1
commit
4f056d55d5
|
@ -1,4 +1,4 @@
|
||||||
//===-- include/Support/DataTypesFix.h - Fix datatype defs ------*- C++ -*-===//
|
//===-- include/Support/AIXDataTypesFix.h - Fix datatype defs ---*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
|
@ -13,17 +13,13 @@
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#ifndef SUPPORT_DATATYPESFIX_H
|
// No include guards desired!
|
||||||
#define SUPPORT_DATATYPESFIX_H
|
|
||||||
|
|
||||||
#include "llvm/Config/config.h"
|
#ifndef SUPPORT_DATATYPES_H
|
||||||
|
#error "AIXDataTypesFix.h must only be included via DataTypes.h!"
|
||||||
#if defined(_POWER) && defined(_AIX)
|
|
||||||
// GCC is strict about defining large constants: they must have LL modifier.
|
|
||||||
#undef INT64_MAX
|
|
||||||
#define INT64_MAX 9223372036854775807LL
|
|
||||||
#undef INT64_MIN
|
|
||||||
#define INT64_MIN (-INT64_MAX-1)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* SUPPORT_DATATYPESFIX_H */
|
// 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
|
||||||
|
#undef INT64_MIN
|
|
@ -49,8 +49,9 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Fix AIX definitions of INT64_{MIN,MAX}
|
#ifdef _AIX
|
||||||
#include "llvm/Support/DataTypesFix.h"
|
#include "llvm/Support/AIXDataTypesFix.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Handle incorrect definition of uint64_t as u_int64_t
|
// Handle incorrect definition of uint64_t as u_int64_t
|
||||||
#ifndef HAVE_UINT64_T
|
#ifndef HAVE_UINT64_T
|
||||||
|
|
Loading…
Reference in New Issue