changeset 908:bc55266563cd HEAD

Use separate check for uint_fast32_t.
author Timo Sirainen <tss@iki.fi>
date Mon, 06 Jan 2003 13:15:26 +0200
parents 218e68ab290d
children 9d1076e7c090
files configure.in src/lib/compat.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sun Jan 05 17:19:50 2003 +0200
+++ b/configure.in	Mon Jan 06 13:15:26 2003 +0200
@@ -415,6 +415,12 @@
   AC_DEFINE(HAVE_UINTMAX_T,, Define if you have uintmax_t (C99 type))
 fi
 
+dnl use separate check, eg. Solaris 8 has uintmax_t but not uint_fast32_t
+AC_CHECKTYPE2(uint_fast32_t, [#include <inttypes.h>])
+if test $i_cv_type_uint_fast32_t = yes; then
+  AC_DEFINE(HAVE_UINT_FAST32_T,, Define if you have uint_fast32_t (C99 type))
+fi
+
 AC_CHECKTYPE2(socklen_t, [#include <sys/socket.h>])
 if test $i_cv_type_socklen_t = yes; then
   AC_DEFINE(HAVE_SOCKLEN_T,, Define to 'int' if you don't have socklen_t)
--- a/src/lib/compat.h	Sun Jan 05 17:19:50 2003 +0200
+++ b/src/lib/compat.h	Mon Jan 06 13:15:26 2003 +0200
@@ -23,7 +23,9 @@
 #  else
 typedef unsigned long uintmax_t;
 #  endif
+#endif
 
+#ifndef HAVE_UINT_FAST32_T
 #  if SIZEOF_INT >= 4
 typedef unsigned int uint_fast32_t;
 #  else