aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/types.h.in
blob: 4353b5e6d9e1ac66a7a9924897be3aa312b5f3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _LINUX_TYPES_H
#define _LINUX_TYPES_H

typedef unsigned char __u8;
typedef signed char __s8;

#if (@SIZEOF_INT@ == 2)
typedef	int		__s16;
typedef	unsigned int	__u16;
#elif (@SIZEOF_SHORT@ == 2)
typedef	short		__s16;
typedef	unsigned short	__u16;
#else
  ?==error: undefined 16 bit type
#endif

#if (@SIZEOF_LONG@ == 4)
typedef	long		__s32;
typedef	unsigned long	__u32;
#elif (@SIZEOF_INT@ == 4)
typedef	int		__s32;
typedef	unsigned int	__u32;
#elif (@SIZEOF_SHORT@ == 4)
typedef	short		__s32;
typedef	unsigned short	__u32;
#else
 ?== error: undefined 32 bit type
#endif

#endif /* LINUX_TYPES_H */