diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-23 22:07:26 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-23 22:07:26 +0000 |
commit | 686efc0b569dc30c7dc1c359dac22b186051fdbe (patch) | |
tree | 9df0f347f3210d74b97cc8bee8ca76d584dc3b45 /llvm | |
parent | 090ed13063d09600fb0e78e041bc9760efebf842 (diff) | |
download | bcm5719-llvm-686efc0b569dc30c7dc1c359dac22b186051fdbe.tar.gz bcm5719-llvm-686efc0b569dc30c7dc1c359dac22b186051fdbe.zip |
DataTypes.h is now output from configure, and shortened
llvm-svn: 11778
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/Support/DataTypes.h.in (renamed from llvm/include/Support/DataTypes.h) | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/llvm/include/Support/DataTypes.h b/llvm/include/Support/DataTypes.h.in index a93919d0f68..d01f8c2f2fa 100644 --- a/llvm/include/Support/DataTypes.h +++ b/llvm/include/Support/DataTypes.h.in @@ -22,31 +22,24 @@ #ifndef SUPPORT_DATATYPES_H #define SUPPORT_DATATYPES_H -#include "Config/config.h" - // Note that this header's correct operation depends on __STDC_LIMIT_MACROS // being defined. We would define it here, but in order to prevent Bad Things // happening when system headers or C++ STL headers include stdint.h before // we define it here, we define it on the g++ command line (in Makefile.rules). - -#ifdef HAVE_STDINT_H -#include <stdint.h> +#if !defined(__STDC_LIMIT_MACROS) +# error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" #endif -#ifdef HAVE_INTTYPES_H -#include <inttypes.h> -#endif - -#ifdef HAVE_SYS_TYPES_H -#include <sys/types.h> -#endif +// Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. +@INCLUDE_INTTYPES_H@ +@INCLUDE_SYS_TYPES_H@ #if !defined(INT64_MAX) /* We couldn't determine INT64_MAX; default it. */ -#define INT64_MAX 9223372036854775807LL +# define INT64_MAX 9223372036854775807LL #endif #if !defined(UINT64_MAX) -#define UINT64_MAX 0xffffffffffffffffULL +# define UINT64_MAX 0xffffffffffffffffULL #endif #endif /* SUPPORT_DATATYPES_H */ |