2003-01-24 00:45:16 +03:00
|
|
|
/*
|
|
|
|
* If linux/types.h is already been included, assume it has defined
|
2003-03-06 19:09:18 +03:00
|
|
|
* 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
|
|
|
*/
|
2003-03-06 19:09:18 +03:00
|
|
|
#if (!defined(_LINUX_TYPES_H) && !defined(_BLKID_TYPES_H) && \
|
2004-04-03 19:20:26 +04:00
|
|
|
!defined(_EXT2_TYPES_H))
|
2003-03-06 19:09:18 +03:00
|
|
|
#define _BLKID_TYPES_H
|
2003-01-24 00:45:16 +03:00
|
|
|
|
2006-04-09 16:41:55 +04:00
|
|
|
@ASM_TYPES_HEADER@
|
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___U8
|
|
|
|
#define HAVE___U8
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __U8_TYPEDEF
|
|
|
|
typedef __U8_TYPEDEF __u8;
|
|
|
|
#else
|
2003-01-24 00:45:16 +03:00
|
|
|
typedef unsigned char __u8;
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___U8 */
|
2006-04-09 16:41:55 +04:00
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___S8
|
|
|
|
#define HAVE___S8
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __S8_TYPEDEF
|
|
|
|
typedef __S8_TYPEDEF __s8;
|
|
|
|
#else
|
2003-01-24 00:45:16 +03:00
|
|
|
typedef signed char __s8;
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___S8 */
|
2003-01-24 00:45:16 +03:00
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___U16
|
|
|
|
#define HAVE___U16
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __U16_TYPEDEF
|
|
|
|
typedef __U16_TYPEDEF __u16;
|
2003-07-06 08:36:48 +04:00
|
|
|
#else
|
2006-04-09 16:41:55 +04:00
|
|
|
#if (@SIZEOF_INT@ == 2)
|
|
|
|
typedef unsigned int __u16;
|
2003-07-06 08:36:48 +04:00
|
|
|
#else
|
2006-04-09 16:41:55 +04:00
|
|
|
#if (@SIZEOF_SHORT@ == 2)
|
|
|
|
typedef unsigned short __u16;
|
2003-01-24 00:45:16 +03:00
|
|
|
#else
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#undef HAVE___U16
|
2006-04-09 16:41:55 +04:00
|
|
|
?==error: undefined 16 bit type
|
|
|
|
#endif /* SIZEOF_SHORT == 2 */
|
|
|
|
#endif /* SIZEOF_INT == 2 */
|
|
|
|
#endif /* __U16_TYPEDEF */
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___U16 */
|
2003-01-24 00:45:16 +03:00
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___S16
|
|
|
|
#define HAVE___S16
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __S16_TYPEDEF
|
|
|
|
typedef __S16_TYPEDEF __s16;
|
|
|
|
#else
|
2003-01-24 00:45:16 +03:00
|
|
|
#if (@SIZEOF_INT@ == 2)
|
|
|
|
typedef int __s16;
|
2003-07-06 08:36:48 +04:00
|
|
|
#else
|
|
|
|
#if (@SIZEOF_SHORT@ == 2)
|
2003-01-24 00:45:16 +03:00
|
|
|
typedef short __s16;
|
|
|
|
#else
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#undef HAVE___S16
|
2003-01-24 00:45:16 +03:00
|
|
|
?==error: undefined 16 bit type
|
2003-07-06 08:36:48 +04:00
|
|
|
#endif /* SIZEOF_SHORT == 2 */
|
|
|
|
#endif /* SIZEOF_INT == 2 */
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif /* __S16_TYPEDEF */
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___S16 */
|
2006-04-09 16:41:55 +04:00
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___U32
|
|
|
|
#define HAVE___U32
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __U32_TYPEDEF
|
|
|
|
typedef __U32_TYPEDEF __u32;
|
|
|
|
#else
|
2003-01-24 00:45:16 +03:00
|
|
|
#if (@SIZEOF_INT@ == 4)
|
|
|
|
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 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 unsigned short __u32;
|
|
|
|
#else
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#undef HAVE___U32
|
2003-01-24 00:45:16 +03:00
|
|
|
?== 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 */
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif /* __U32_TYPEDEF */
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___U32 */
|
2006-04-09 16:41:55 +04:00
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___S32
|
|
|
|
#define HAVE___S32
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __S32_TYPEDEF
|
|
|
|
typedef __S32_TYPEDEF __s32;
|
|
|
|
#else
|
|
|
|
#if (@SIZEOF_INT@ == 4)
|
|
|
|
typedef int __s32;
|
|
|
|
#else
|
|
|
|
#if (@SIZEOF_LONG@ == 4)
|
|
|
|
typedef long __s32;
|
|
|
|
#else
|
|
|
|
#if (@SIZEOF_SHORT@ == 4)
|
|
|
|
typedef short __s32;
|
|
|
|
#else
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#undef HAVE___S32
|
2006-04-09 16:41:55 +04:00
|
|
|
?== error: undefined 32 bit type
|
|
|
|
#endif /* SIZEOF_SHORT == 4 */
|
|
|
|
#endif /* SIZEOF_LONG == 4 */
|
|
|
|
#endif /* SIZEOF_INT == 4 */
|
|
|
|
#endif /* __S32_TYPEDEF */
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___S32 */
|
2006-04-09 16:41:55 +04:00
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___U64
|
|
|
|
#define HAVE___U64
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __U64_TYPEDEF
|
|
|
|
typedef __U64_TYPEDEF __u64;
|
|
|
|
#else
|
|
|
|
#if (@SIZEOF_INT@ == 8)
|
|
|
|
typedef unsigned int __u64;
|
|
|
|
#else
|
|
|
|
#if (@SIZEOF_LONG_LONG@ == 8)
|
|
|
|
typedef unsigned long long __u64;
|
2013-12-16 07:09:24 +04:00
|
|
|
#else
|
|
|
|
#if (@SIZEOF_LONG@ == 8)
|
|
|
|
typedef unsigned long __u64;
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#else
|
|
|
|
#undef HAVE___U64
|
|
|
|
?== error: undefined 64 bit type
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif /* SIZEOF_LONG == 8 */
|
2013-12-16 07:09:24 +04:00
|
|
|
#endif /* SIZEOF_LONG_LONG == 8 */
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif /* SIZEOF_INT == 8 */
|
|
|
|
#endif /* __U64_TYPEDEF */
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___U64 */
|
2006-04-09 16:41:55 +04:00
|
|
|
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#ifndef HAVE___S64
|
|
|
|
#define HAVE___S64
|
2006-04-09 16:41:55 +04:00
|
|
|
#ifdef __S64_TYPEDEF
|
|
|
|
typedef __S64_TYPEDEF __s64;
|
|
|
|
#else
|
|
|
|
#if (@SIZEOF_INT@ == 8)
|
|
|
|
typedef int __s64;
|
|
|
|
#else
|
|
|
|
#if (@SIZEOF_LONG_LONG@ == 8)
|
|
|
|
#if defined(__GNUC__)
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
typedef __signed__ long long __s64;
|
2006-04-09 16:41:55 +04:00
|
|
|
#else
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
typedef signed long long __s64;
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif /* __GNUC__ */
|
2013-12-16 07:09:24 +04:00
|
|
|
#else
|
|
|
|
#if (@SIZEOF_LONG@ == 8)
|
|
|
|
typedef long __s64;
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#else
|
|
|
|
#undef HAVE___S64
|
|
|
|
?== error: undefined 64 bit type
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif /* SIZEOF_LONG == 8 */
|
2013-12-16 07:09:24 +04:00
|
|
|
#endif /* SIZEOF_LONG_LONG == 8 */
|
2006-04-09 16:41:55 +04:00
|
|
|
#endif /* SIZEOF_INT == 8 */
|
|
|
|
#endif /* __S64_TYPEDEF */
|
blkid,ext2fs: avoid name clash with __u{8,16,32,64}
Try to avoid name clashes with definitions of __u8, __u16, __u32,
and __u64 in userspace, in case other headers also define these
types. Define HAVE___{S,U}{8,16,32,64} preprocessor macros to
show that these types are already defined.
This would avoid the need to check for _BLKID_TYPES_H in ext2_types.h
and _EXT2_TYPES_H in blkid_types.h, but since older versions of these
headers did not use HAVE___U8 et.al. keep these checks around for now.
Report an error if there are no 64-bit types available. The code
will not compile if these are not available.
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-07-05 07:34:10 +04:00
|
|
|
#endif /* HAVE___S64 */
|
2006-04-09 16:41:55 +04:00
|
|
|
|
|
|
|
#undef __S8_TYPEDEF
|
|
|
|
#undef __U8_TYPEDEF
|
|
|
|
#undef __S16_TYPEDEF
|
|
|
|
#undef __U16_TYPEDEF
|
|
|
|
#undef __S32_TYPEDEF
|
|
|
|
#undef __U32_TYPEDEF
|
|
|
|
#undef __S64_TYPEDEF
|
|
|
|
#undef __U64_TYPEDEF
|
2003-01-24 00:45:16 +03:00
|
|
|
|
2003-03-06 19:09:18 +03:00
|
|
|
#endif /* _*_TYPES_H */
|