Mercurial > hg > octave-shane > gnulib-hg
changeset 14861:baaff605722d
perror: Fix compilation error.
* lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
Undefine fprintf, not sprintf.
* modules/perror (Depends-on): Remove intprops, verify.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 04 Jun 2011 12:54:38 +0200 |
parents | c12e3d2438e8 |
children | 42eaca1a6673 |
files | ChangeLog lib/perror.c modules/perror |
diffstat | 3 files changed, 8 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-06-04 Bruno Haible <bruno@clisp.org> + + perror: Fix compilation error. + * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h. + Undefine fprintf, not sprintf. + * modules/perror (Depends-on): Remove intprops, verify. + 2011-06-04 Bruno Haible <bruno@clisp.org> setlocale: Enable replacement on Cygwin 1.5.
--- a/lib/perror.c +++ b/lib/perror.c @@ -24,18 +24,8 @@ #include <stdlib.h> #include <string.h> -#include "intprops.h" -#include "verify.h" - /* Use the system functions, not the gnulib overrides in this file. */ -#undef sprintf - -/* my_strerror (errnum) is equivalent to strerror (errnum). - But it uses its own buffer, not the one from strerror(). */ -#define STATIC static -#undef strerror -#define strerror my_strerror -#include "strerror-impl.h" +#undef fprintf void perror (const char *string)