changeset 6835:d238fb8227ce

Tweak for Solaris 2.5.1.
author Bruno Haible <bruno@clisp.org>
date Sat, 17 Jun 2006 19:33:36 +0000
parents 8094e7d61c3b
children e2c19cb657e7
files lib/ChangeLog lib/stdint_.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-17  Bruno Haible  <bruno@clisp.org>
+
+	* stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
+	problem on Solaris 2.5.1.
+
 2006-06-16  Eric Blake  <ebb9@byu.net>
 
 	* unsetenv.c [!defined errno]: Assume errno.h declares errno.
--- a/lib/stdint_.h
+++ b/lib/stdint_.h
@@ -77,6 +77,7 @@
 #endif
 #if !@HAVE_UINT8_T@
 typedef unsigned char  uint8_t;
+# define _UINT8_T /* avoid collision with Solaris 2.5.1 <pthread.h> */
 #endif
 
 #if !@HAVE_INT16_T@
@@ -91,6 +92,7 @@
 #endif
 #if !@HAVE_UINT32_T@
 typedef unsigned int   uint32_t;
+# define _UINT32_T /* avoid collision with Solaris 2.5.1 <pthread.h> */
 #endif
 
 #if @HAVE_INT64_T@
@@ -115,6 +117,7 @@
 #  define _STDINT_H_HAVE_UINT64 1
 # elif @HAVE_LONG_LONG_64BIT@
 typedef unsigned long long uint64_t;
+#  define _UINT64_T /* avoid collision with Solaris 2.5.1 <pthread.h> */
 #  define _STDINT_H_HAVE_UINT64 1
 # elif defined _MSC_VER
 typedef unsigned __int64   uint64_t;