mkdtemp can now use the full <inttypes.h>.
authorBruno Haible <bruno@clisp.org>
Mon, 11 Sep 2006 12:35:15 +0000 (12:35 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 11 Sep 2006 12:35:15 +0000 (12:35 +0000)
ChangeLog
lib/ChangeLog
lib/mkdtemp.c
m4/ChangeLog
m4/mkdtemp.m4
modules/mkdtemp

index 743938e..ee877af 100644 (file)
--- 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
index 7a7f842..8b6902b 100644 (file)
@@ -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
index 8bc0412..3228f05 100644 (file)
@@ -30,6 +30,7 @@
 #endif
 
 #include <stddef.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 
 # 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
index 992b87b..61c4e6f 100644 (file)
@@ -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.
index e02c825..e39bcb9 100644 (file)
@@ -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_DEFUN([gl_PREREQ_MKDTEMP],
   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)
 ])
index cbb64d9..3188036 100644 (file)
@@ -4,13 +4,10 @@ mkdtemp() function: create a private temporary directory.
 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: