2001-06-02 03:49:46 +04:00
|
|
|
#ifndef _EXT2_TYPES_H
|
|
|
|
#define _EXT2_TYPES_H
|
1997-04-26 17:58:21 +04:00
|
|
|
|
2001-06-14 04:24:42 +04:00
|
|
|
/*
|
|
|
|
* If linux/types.h is already been included, assume it has defined
|
|
|
|
* everything we need. (cross fingers)
|
|
|
|
*/
|
|
|
|
#ifndef _LINUX_TYPES_H
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
typedef unsigned char __u8;
|
|
|
|
typedef signed char __s8;
|
|
|
|
|
1997-04-29 18:53:37 +04:00
|
|
|
#if (@SIZEOF_INT@ == 8)
|
|
|
|
typedef int __s64;
|
|
|
|
typedef unsigned int __u64;
|
|
|
|
#elif (@SIZEOF_LONG@ == 8)
|
|
|
|
typedef long __s64;
|
|
|
|
typedef unsigned long __u64;
|
|
|
|
#elif (@SIZEOF_LONG_LONG@ == 8)
|
1999-01-04 10:39:19 +03:00
|
|
|
#if defined(__GNUC__)
|
1998-04-03 20:07:06 +04:00
|
|
|
typedef __signed__ long long __s64;
|
1999-01-04 10:39:19 +03:00
|
|
|
#else
|
|
|
|
typedef signed long long __s64;
|
|
|
|
#endif
|
1997-10-20 03:13:26 +04:00
|
|
|
typedef unsigned long long __u64;
|
1997-04-29 18:53:37 +04:00
|
|
|
#endif
|
|
|
|
|
1997-04-26 17:58:21 +04:00
|
|
|
#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
|
|
|
|
|
2001-06-08 13:43:40 +04:00
|
|
|
#if (@SIZEOF_INT@ == 4)
|
1997-04-26 17:58:21 +04:00
|
|
|
typedef int __s32;
|
|
|
|
typedef unsigned int __u32;
|
2001-06-08 13:43:40 +04:00
|
|
|
#elif (@SIZEOF_LONG@ == 4)
|
|
|
|
typedef long __s32;
|
|
|
|
typedef unsigned long __u32;
|
1997-04-26 17:58:21 +04:00
|
|
|
#elif (@SIZEOF_SHORT@ == 4)
|
|
|
|
typedef short __s32;
|
|
|
|
typedef unsigned short __u32;
|
|
|
|
#else
|
|
|
|
?== error: undefined 32 bit type
|
|
|
|
#endif
|
|
|
|
|
2001-06-14 04:24:42 +04:00
|
|
|
#endif /* LINUX_TYPES_H */
|
|
|
|
|
2001-06-02 03:49:46 +04:00
|
|
|
#endif /* EXT2_TYPES_H */
|