e2fsprogs/lib/blkid/blkid_types.h.in

62 lines
1.4 KiB
C
Raw Normal View History

2003-01-24 00:45:16 +03:00
/*
* If linux/types.h is already been included, assume it has defined
* everything we need. (cross fingers) Other header files may have
* also defined the types that we need.
2003-01-24 00:45:16 +03:00
*/
#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
!defined(_EXT2_TYPES_H))
#define _BLKID_TYPES_H
2003-01-24 00:45:16 +03:00
typedef unsigned char __u8;
typedef signed char __s8;
#if (@SIZEOF_INT@ == 8)
typedef int __s64;
typedef unsigned int __u64;
2003-07-06 08:36:48 +04:00
#else
#if (@SIZEOF_LONG@ == 8)
2003-01-24 00:45:16 +03:00
typedef long __s64;
typedef unsigned long __u64;
2003-07-06 08:36:48 +04:00
#else
#if (@SIZEOF_LONG_LONG@ == 8)
2003-01-24 00:45:16 +03:00
#if defined(__GNUC__)
typedef __signed__ long long __s64;
#else
typedef signed long long __s64;
2003-07-06 08:36:48 +04:00
#endif /* __GNUC__ */
2003-01-24 00:45:16 +03:00
typedef unsigned long long __u64;
2003-07-06 08:36:48 +04:00
#endif /* SIZEOF_LONG_LONG == 8 */
#endif /* SIZEOF_LONG == 8 */
#endif /* SIZEOF_INT == 8 */
2003-01-24 00:45:16 +03:00
#if (@SIZEOF_INT@ == 2)
typedef int __s16;
typedef unsigned int __u16;
2003-07-06 08:36:48 +04:00
#else
#if (@SIZEOF_SHORT@ == 2)
2003-01-24 00:45:16 +03:00
typedef short __s16;
typedef unsigned short __u16;
#else
?==error: undefined 16 bit type
2003-07-06 08:36:48 +04:00
#endif /* SIZEOF_SHORT == 2 */
#endif /* SIZEOF_INT == 2 */
2003-01-24 00:45:16 +03:00
#if (@SIZEOF_INT@ == 4)
typedef int __s32;
typedef unsigned int __u32;
2003-07-06 08:36:48 +04:00
#else
#if (@SIZEOF_LONG@ == 4)
2003-01-24 00:45:16 +03:00
typedef long __s32;
typedef unsigned long __u32;
2003-07-06 08:36:48 +04:00
#else
#if (@SIZEOF_SHORT@ == 4)
2003-01-24 00:45:16 +03:00
typedef short __s32;
typedef unsigned short __u32;
#else
?== error: undefined 32 bit type
2003-07-06 08:36:48 +04:00
#endif /* SIZEOF_SHORT == 4 */
#endif /* SIZEOF_LONG == 4 */
#endif /* SIZEOF_INT == 4 */
2003-01-24 00:45:16 +03:00
#endif /* _*_TYPES_H */