bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mkdtemp can use stdint


From: Bruno Haible
Subject: mkdtemp can use stdint
Date: Mon, 11 Sep 2006 14:36:48 +0200
User-agent: KMail/1.9.1

Hi,

I changed the mkdtemp module so that it uses the complete <stdint.h>
replacement.


2006-09-10  Bruno Haible  <address@hidden>

        * mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require gl_AC_TYPE_UINTMAX_T.

2006-09-10  Bruno Haible  <address@hidden>

        * mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.

2006-09-10  Bruno Haible  <address@hidden>

        * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
        m4/inttypes_h.m4, m4/uintmax_t.m4.

*** gnulib-20060908/m4/mkdtemp.m4       2005-01-18 14:07:56.000000000 +0100
--- gnulib-20060908-modified/m4/mkdtemp.m4      2006-09-10 19:26:07.000000000 
+0200
***************
*** 1,5 ****
! # mkdtemp.m4 serial 3
! dnl Copyright (C) 2001-2003 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.
--- 1,5 ----
! # 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,23 ****
    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)
  ])
--- 18,22 ----
*** gnulib-20060908/lib/mkdtemp.c       2006-07-22 17:43:56.000000000 +0200
--- gnulib-20060908-modified/lib/mkdtemp.c      2006-09-10 19:25:02.000000000 
+0200
***************
*** 30,35 ****
--- 30,36 ----
  #endif
  
  #include <stddef.h>
+ #include <stdint.h>
  #include <stdlib.h>
  #include <string.h>
  
***************
*** 38,50 ****
  # 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
--- 39,44 ----
*** gnulib-20060908/modules/mkdtemp     2006-04-24 13:38:06.000000000 +0200
--- gnulib-20060908-modified/modules/mkdtemp    2006-09-10 19:30:14.000000000 
+0200
***************
*** 4,16 ****
  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:
  unistd
  
  configure.ac:
--- 4,13 ----
  Files:
  lib/mkdtemp.h
  lib/mkdtemp.c
  m4/mkdtemp.m4
  
  Depends-on:
+ stdint
  unistd
  
  configure.ac:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]