X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Ftypes.h;h=bc227ccb3274a42aab27bdd03cd8bd2d8d6feafa;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=e678ccb20bd69cf060925edd5ab93fd1b3066b8c;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/linux/types.h b/include/linux/types.h index e678ccb20..bc227ccb3 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -142,6 +142,13 @@ typedef unsigned long sector_t; #define pgoff_t unsigned long #endif +#endif /* __KERNEL_STRICT_NAMES */ + +/* + * Below are truly Linux-specific types that should never collide with + * any application/library that wants linux/types.h. + */ + #ifdef __CHECKER__ #define __bitwise __attribute__((bitwise)) #else @@ -152,15 +159,10 @@ typedef __u16 __bitwise __le16; typedef __u16 __bitwise __be16; typedef __u32 __bitwise __le32; typedef __u32 __bitwise __be32; +#if defined(__GNUC__) && !defined(__STRICT_ANSI__) typedef __u64 __bitwise __le64; typedef __u64 __bitwise __be64; - -#endif /* __KERNEL_STRICT_NAMES */ - -/* - * Below are truly Linux-specific types that should never collide with - * any application/library that wants linux/types.h. - */ +#endif struct ustat { __kernel_daddr_t f_tfree;