diff options
author | Bruno Haible <bruno@clisp.org> | 2006-09-11 12:35:15 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-09-11 12:35:15 +0000 |
commit | 569a7c62fc0172aec5d994e3db1c4d0bec5802f7 (patch) | |
tree | 8cec352c53b9108a3e8219149429bd759b8c8dfd | |
parent | 3fb0af8e37a8408f7104a404447d7f0582704242 (diff) | |
download | gnulib-569a7c62fc0172aec5d994e3db1c4d0bec5802f7.tar.gz |
mkdtemp can now use the full <inttypes.h>.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/mkdtemp.c | 8 | ||||
-rw-r--r-- | m4/ChangeLog | 4 | ||||
-rw-r--r-- | m4/mkdtemp.m4 | 5 | ||||
-rw-r--r-- | modules/mkdtemp | 5 |
6 files changed, 17 insertions, 14 deletions
@@ -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 diff --git a/lib/ChangeLog b/lib/ChangeLog index 7a7f842d04..8b6902bd30 100644 --- 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 diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index 8bc04121dd..3228f05576 100644 --- 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 diff --git a/m4/ChangeLog b/m4/ChangeLog index 992b87b6c6..61c4e6f923 100644 --- 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. diff --git a/m4/mkdtemp.m4 b/m4/mkdtemp.m4 index e02c8256c9..e39bcb938e 100644 --- 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_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) ]) diff --git a/modules/mkdtemp b/modules/mkdtemp index cbb64d9613..3188036eaa 100644 --- a/modules/mkdtemp +++ b/modules/mkdtemp @@ -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: |