2 * If linux/types.h is already been included, assume it has defined
3 * everything we need. (cross fingers) Other header files may have
4 * also defined the types that we need.
6 #if (!defined(_STDINT_H) && !defined(_UUID_STDINT_H))
9 typedef unsigned char uint8_t;
10 typedef signed char int8_t;
12 #if (@SIZEOF_INT@ == 8)
14 typedef unsigned int uint64_t;
15 #elif (@SIZEOF_LONG@ == 8)
17 typedef unsigned long uint64_t;
18 #elif (@SIZEOF_LONG_LONG@ == 8)
20 typedef __signed__ long long int64_t;
22 typedef signed long long int64_t;
24 typedef unsigned long long uint64_t;
27 #if (@SIZEOF_INT@ == 2)
29 typedef unsigned int uint16_t;
30 #elif (@SIZEOF_SHORT@ == 2)
31 typedef short int16_t;
32 typedef unsigned short uint16_t;
34 ?==error: undefined 16 bit type
37 #if (@SIZEOF_INT@ == 4)
39 typedef unsigned int uint32_t;
40 #elif (@SIZEOF_LONG@ == 4)
42 typedef unsigned long uint32_t;
43 #elif (@SIZEOF_SHORT@ == 4)
44 typedef short int32_t;
45 typedef unsigned short uint32_t;
47 ?== error: undefined 32 bit type