From ccb1060c39fb90efde197a2d322c82da20dda886 Mon Sep 17 00:00:00 2001 From: ghazi Date: Sun, 28 Jun 1998 06:09:57 +0000 Subject: Consolidate strerror handling, as well as getcwd/getwd. * configure.in (GCC_NEED_DECLARATIONS): Add strerror, getcwd and getwd. * acconfig.m4: Add stubs for NEED_DECLARATION_STRERROR, NEED_DECLARATION_GETCWD and NEED_DECLARATION_GETWD. * cccp.c: Remove strerror()/sys_nerr/sys_errlist decls. (my_strerror): Add prototype and make it static. * collect2.c: Likewise. * cpplib.c: Likewise. * gcc.c: Likewise, but keep `my_strerror' extern. * protoize.c: Likewise. * pexecute.c (my_strerror): Add argument to prototype. * system.h: Add prototypes for getcwd, getwd and strerror. Add extern decls for sys_nerr and sys_errlist. Make abort decl explicitly extern. * getpwd.c: Remove decls for getwd and getcwd. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20779 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/acconfig.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/acconfig.h') diff --git a/gcc/acconfig.h b/gcc/acconfig.h index 904b7e44750..f2dd5820989 100644 --- a/gcc/acconfig.h +++ b/gcc/acconfig.h @@ -55,4 +55,13 @@ /* Whether abort must be declared even if is included. */ #undef NEED_DECLARATION_ABORT + +/* Whether strerror must be declared even if is included. */ +#undef NEED_DECLARATION_STRERROR + +/* Whether getcwd must be declared even if is included. */ +#undef NEED_DECLARATION_GETCWD + +/* Whether getwd must be declared even if is included. */ +#undef NEED_DECLARATION_GETWD @TOP@ -- cgit v1.2.1