From: Bruno Haible Date: Sun, 13 May 2007 21:44:46 +0000 (+0000) Subject: Fix syntax error in C++ mode. X-Git-Tag: cvs-readonly~405 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=6b7c5b611e42d91acc2d138d2c84562f7a4a85d2;p=gnulib.git Fix syntax error in C++ mode. --- diff --git a/ChangeLog b/ChangeLog index 235043e35..efaf8a112 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-05-13 Bruno Haible + + * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed + when used in C++ mode. + +2007-05-12 Bruno Haible + + * lib/linebuffer.h: Tweak doc. + * lib/linebuffer.c: Likewise. + 2007-05-12 James Youngman * lib/linebuffer.c (readlinebuffer_delim): New function, diff --git a/lib/stdlib_.h b/lib/stdlib_.h index c947c1d26..425961edd 100644 --- a/lib/stdlib_.h +++ b/lib/stdlib_.h @@ -103,7 +103,7 @@ extern int getsubopt (char **optionp, char *const *tokens, char **valuep); 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); +extern char * mkdtemp (char * /*template*/); # endif #elif defined GNULIB_POSIXCHECK # undef mkdtemp @@ -126,7 +126,7 @@ extern char * mkdtemp (char *template); Returns the open file descriptor if successful, otherwise -1 and errno set. */ # define mkstemp rpl_mkstemp -extern int mkstemp (char *template); +extern int mkstemp (char * /*template*/); # else /* On MacOS X 10.3, only declares mkstemp. */ # include