(strerror_r): Remove decl; not needed.

(strerror): Use same pattern as ../lib/error.c.
This commit is contained in:
Paul Eggert
2002-08-12 14:36:57 +00:00
parent 3d70dbe593
commit 9ff012ca23

View File

@@ -43,13 +43,6 @@ void exit ();
#include "complain.h" #include "complain.h"
#ifndef HAVE_DECL_STRERROR_R
"this configure-time declaration test was not run"
#endif
#if !HAVE_DECL_STRERROR_R
char *strerror_r ();
#endif
#ifndef _ #ifndef _
# define _(String) String # define _(String) String
#endif #endif
@@ -76,12 +69,12 @@ char *strerror_r ();
name of the executing program. */ name of the executing program. */
extern char *program_name; extern char *program_name;
# ifdef HAVE_STRERROR_R
# define __strerror_r strerror_r
# else
# if HAVE_STRERROR # if HAVE_STRERROR
# ifndef strerror /* On some systems, strerror is a macro */ # ifndef HAVE_DECL_STRERROR
char *strerror (); "this configure-time declaration test was not run"
# endif
# if !HAVE_DECL_STRERROR && !defined strerror
char *strerror PARAMS ((int));
# endif # endif
# else # else
static char * static char *
@@ -97,7 +90,6 @@ private_strerror (errnum)
} }
# define strerror private_strerror # define strerror private_strerror
# endif /* HAVE_STRERROR */ # endif /* HAVE_STRERROR */
# endif /* HAVE_STRERROR_R */
#endif /* not _LIBC */ #endif /* not _LIBC */
/* This variable is incremented each time `warn' is called. */ /* This variable is incremented each time `warn' is called. */