Whamcloud - gitweb
4353b5e6d9e1ac66a7a9924897be3aa312b5f3fa
[tools/e2fsprogs.git] / include / linux / types.h.in
1 #ifndef _LINUX_TYPES_H
2 #define _LINUX_TYPES_H
3
4 typedef unsigned char __u8;
5 typedef signed char __s8;
6
7 #if (@SIZEOF_INT@ == 2)
8 typedef int             __s16;
9 typedef unsigned int    __u16;
10 #elif (@SIZEOF_SHORT@ == 2)
11 typedef short           __s16;
12 typedef unsigned short  __u16;
13 #else
14   ?==error: undefined 16 bit type
15 #endif
16
17 #if (@SIZEOF_LONG@ == 4)
18 typedef long            __s32;
19 typedef unsigned long   __u32;
20 #elif (@SIZEOF_INT@ == 4)
21 typedef int             __s32;
22 typedef unsigned int    __u32;
23 #elif (@SIZEOF_SHORT@ == 4)
24 typedef short           __s32;
25 typedef unsigned short  __u32;
26 #else
27  ?== error: undefined 32 bit type
28 #endif
29
30 #endif /* LINUX_TYPES_H */