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

2007-05-13  Bruno Haible  <[EMAIL PROTECTED]>

        * 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