DataTypes.h is now output from configure, and shortened
[oota-llvm.git] / include / llvm / Support / DataTypes.h.in
1 //===-- include/Support/DataTypes.h - Define fixed size types ---*- 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 contains definitions to figure out the size of _HOST_ data types.
11 // This file is important because different host OS's define different macros,
12 // which makes portability tough.  This file exports the following definitions:
13 //
14 //   int64_t       : is a typedef for the signed 64 bit system type
15 //   uint64_t      : is a typedef for the unsigned 64 bit system type
16 //   INT64_MAX     : is a #define specifying the max value for int64_t's
17 //
18 // No library is required when using these functinons.
19 //
20 //===----------------------------------------------------------------------===//
21
22 #ifndef SUPPORT_DATATYPES_H
23 #define SUPPORT_DATATYPES_H
24
25 // Note that this header's correct operation depends on __STDC_LIMIT_MACROS
26 // being defined.  We would define it here, but in order to prevent Bad Things
27 // happening when system headers or C++ STL headers include stdint.h before
28 // we define it here, we define it on the g++ command line (in Makefile.rules).
29 #if !defined(__STDC_LIMIT_MACROS)
30 # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
31 #endif
32
33 // Note that <inttypes.h> includes <stdint.h>, if this is a C99 system.
34 @INCLUDE_INTTYPES_H@
35 @INCLUDE_SYS_TYPES_H@
36
37 #if !defined(INT64_MAX)
38 /* We couldn't determine INT64_MAX; default it. */
39 # define INT64_MAX 9223372036854775807LL
40 #endif
41 #if !defined(UINT64_MAX)
42 # define UINT64_MAX 0xffffffffffffffffULL
43 #endif
44
45 #endif  /* SUPPORT_DATATYPES_H */