From 3b44ff3cbc0002cfde1a4699918f6c54cdbe03bf Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 29 Jan 2007 14:31:16 +0000 Subject: - sync with glibc (and provide a check for icc). Only affects gcc <2.7 or non-gcc compilers that bailed earlier due to missing int64_t --- include/sys/types.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/sys/types.h b/include/sys/types.h index 087819b02..8c0b5dce3 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -163,7 +163,9 @@ typedef unsigned int uint; typedef char int8_t; typedef short int int16_t; typedef int int32_t; -# ifdef __GNUC__ +# if __WORDSIZE == 64 +typedef long int int64_t; +# elif defined __GNUC__ || defined __ICC __extension__ typedef long long int int64_t; # endif # endif @@ -172,7 +174,9 @@ __extension__ typedef long long int int64_t; typedef unsigned char u_int8_t; typedef unsigned short int u_int16_t; typedef unsigned int u_int32_t; -# ifdef __GNUC__ +# if __WORDSIZE == 64 +typedef unsigned long int u_int64_t; +# elif defined __GNUC__ || defined __ICC __extension__ typedef unsigned long long int u_int64_t; # endif -- cgit v1.2.3