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(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
7 !defined(_EXT2_TYPES_H))
10 typedef unsigned char __u8;
11 typedef signed char __s8;
13 #if (@SIZEOF_INT@ == 8)
15 typedef unsigned int __u64;
17 #if (@SIZEOF_LONG@ == 8)
19 typedef unsigned long __u64;
21 #if (@SIZEOF_LONG_LONG@ == 8)
23 typedef __signed__ long long __s64;
25 typedef signed long long __s64;
27 typedef unsigned long long __u64;
28 #endif /* SIZEOF_LONG_LONG == 8 */
29 #endif /* SIZEOF_LONG == 8 */
30 #endif /* SIZEOF_INT == 8 */
32 #if (@SIZEOF_INT@ == 2)
34 typedef unsigned int __u16;
36 #if (@SIZEOF_SHORT@ == 2)
38 typedef unsigned short __u16;
40 ?==error: undefined 16 bit type
41 #endif /* SIZEOF_SHORT == 2 */
42 #endif /* SIZEOF_INT == 2 */
44 #if (@SIZEOF_INT@ == 4)
46 typedef unsigned int __u32;
48 #if (@SIZEOF_LONG@ == 4)
50 typedef unsigned long __u32;
52 #if (@SIZEOF_SHORT@ == 4)
54 typedef unsigned short __u32;
56 ?== error: undefined 32 bit type
57 #endif /* SIZEOF_SHORT == 4 */
58 #endif /* SIZEOF_LONG == 4 */
59 #endif /* SIZEOF_INT == 4 */
61 #endif /* _*_TYPES_H */