changeset 7293:b2b46d185006

mkdtemp can now use the full <inttypes.h>.
author Bruno Haible <bruno@clisp.org>
date Mon, 11 Sep 2006 12:35:15 +0000
parents 17785d5bede0
children 429742e1c41d
files ChangeLog lib/ChangeLog lib/mkdtemp.c m4/ChangeLog m4/mkdtemp.m4 modules/mkdtemp
diffstat 6 files changed, 17 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-10  Bruno Haible  <bruno@clisp.org>
+
+	* modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
+	m4/inttypes_h.m4, m4/uintmax_t.m4.
+
 2006-09-09  Bruno Haible  <bruno@clisp.org>
 
 	* gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-10  Bruno Haible  <bruno@clisp.org>
+
+	* mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
+
 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 	* argp-parse.c (__argp_parse) [!_LIBC]: Make sure
--- a/lib/mkdtemp.c
+++ b/lib/mkdtemp.c
@@ -30,6 +30,7 @@
 #endif
 
 #include <stddef.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -38,13 +39,6 @@
 # define TMP_MAX 238328
 #endif
 
-#if HAVE_STDINT_H || _LIBC
-# include <stdint.h>
-#endif
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-
 #include <unistd.h>
 
 #if HAVE_GETTIMEOFDAY || _LIBC
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-10  Bruno Haible  <bruno@clisp.org>
+
+	* mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require gl_AC_TYPE_UINTMAX_T.
+
 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
 
 	* mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
--- a/m4/mkdtemp.m4
+++ b/m4/mkdtemp.m4
@@ -1,5 +1,5 @@
-# mkdtemp.m4 serial 3
-dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
+# mkdtemp.m4 serial 4
+dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -18,6 +18,5 @@
   AC_REQUIRE([AC_HEADER_STAT])
   AC_CHECK_HEADERS_ONCE(sys/time.h unistd.h)
   AC_CHECK_HEADERS(time.h)
-  AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
   AC_CHECK_FUNCS(gettimeofday)
 ])
--- a/modules/mkdtemp
+++ b/modules/mkdtemp
@@ -4,13 +4,10 @@
 Files:
 lib/mkdtemp.h
 lib/mkdtemp.c
-m4/ulonglong.m4
-m4/stdint_h.m4
-m4/inttypes_h.m4
-m4/uintmax_t.m4
 m4/mkdtemp.m4
 
 Depends-on:
+stdint
 unistd
 
 configure.ac: