svn commit: trunk/uClibc/include/sys

aldot at uclibc.org aldot at uclibc.org
Mon Jan 29 14:31:17 UTC 2007


Author: aldot
Date: 2007-01-29 06:31:16 -0800 (Mon, 29 Jan 2007)
New Revision: 17631

Log:
- 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


Modified:
   trunk/uClibc/include/sys/types.h


Changeset:
Modified: trunk/uClibc/include/sys/types.h
===================================================================
--- trunk/uClibc/include/sys/types.h	2007-01-29 12:59:17 UTC (rev 17630)
+++ trunk/uClibc/include/sys/types.h	2007-01-29 14:31:16 UTC (rev 17631)
@@ -163,7 +163,9 @@
 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 @@
 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
 




More information about the uClibc-cvs mailing list