OpenMPI  0.1.1
vt_inttypes.h
1 /**
2  * VampirTrace
3  * http://www.tu-dresden.de/zih/vampirtrace
4  *
5  * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
6  *
7  * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8  * Centre, Federal Republic of Germany
9  *
10  * See the file COPYING in the package base directory for details
11  **/
12 
13 #ifndef _VT_INTTYPES_H
14 #define _VT_INTTYPES_H
15 
16 #ifndef _CONFIG_H
17 # define HAVE_STDINT_H 1
18 # define HAVE_INTTYPES_H 1
19 # define SIZEOF_LONG 8
20 #endif /* _CONFIG_H */
21 
22 #if defined(HAVE_STDINT_H) && HAVE_STDINT_H && !defined(__sgi)
23 # include <stdint.h>
24 #elif defined(HAVE_INTTYPES_H) && HAVE_INTTYPES_H
25 # include <inttypes.h>
26 #else /* HAVE_INTTYPES_H || HAVE_STDINT_H */
27 
28  /* Signed. */
29  typedef signed char int8_t;
30  typedef signed short int int16_t;
31  typedef signed int int32_t;
32 
33 #if SIZEOF_LONG == 8
34  typedef signed long int int64_t;
35 #else /* SIZEOF_LONG */
36  typedef signed long long int int64_t;
37 #endif /* SIZEOF_LONG */
38 
39 /* Unsigned. */
40  typedef unsigned char uint8_t;
41  typedef unsigned short int uint16_t;
42  typedef unsigned int uint32_t;
43 
44 #if SIZEOF_LONG == 8
45  typedef unsigned long int uint64_t;
46 #else /* SIZEOF_LONG */
47  typedef unsigned long long int uint64_t;
48 #endif /* SIZEOF_LONG */
49 
50 #endif /* HAVE_INTTYPES_H || HAVE_STDINT_H */
51 
52 #endif /* _VT_INTTYPES_H */