bug-gnulib
[Top][All Lists]
Advanced

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

fix stdlib.h for C++


From: Bruno Haible
Subject: fix stdlib.h for C++
Date: Sun, 13 May 2007 23:44:19 +0200
User-agent: KMail/1.5.4

This is needed because 'template' is a keyword in C++.

2007-05-13  Bruno Haible  <address@hidden>

        * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
        when used in C++ mode.

*** lib/stdlib_.h       27 Apr 2007 11:09:11 -0000      1.9
--- lib/stdlib_.h       13 May 2007 21:43:01 -0000
***************
*** 103,109 ****
     they are replaced with a string that makes the directory name unique.
     Returns TEMPLATE, or a null pointer if it cannot get a unique name.
     The directory is created mode 700.  */
! extern char * mkdtemp (char *template);
  # endif
  #elif defined GNULIB_POSIXCHECK
  # undef mkdtemp
--- 103,109 ----
     they are replaced with a string that makes the directory name unique.
     Returns TEMPLATE, or a null pointer if it cannot get a unique name.
     The directory is created mode 700.  */
! extern char * mkdtemp (char * /*template*/);
  # endif
  #elif defined GNULIB_POSIXCHECK
  # undef mkdtemp
***************
*** 126,132 ****
     Returns the open file descriptor if successful, otherwise -1 and errno
     set.  */
  #  define mkstemp rpl_mkstemp
! extern int mkstemp (char *template);
  # else
  /* On MacOS X 10.3, only <unistd.h> declares mkstemp.  */
  #  include <unistd.h>
--- 126,132 ----
     Returns the open file descriptor if successful, otherwise -1 and errno
     set.  */
  #  define mkstemp rpl_mkstemp
! extern int mkstemp (char * /*template*/);
  # else
  /* On MacOS X 10.3, only <unistd.h> declares mkstemp.  */
  #  include <unistd.h>





reply via email to

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