From 351df80413984221416167a2e0c6e28732bffb4d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 20 Jan 2003 20:41:55 +0000 Subject: collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before prototyping. * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before prototyping. * configure.in: Check for and ldgetname() prototype. * config.in, configure: Regenerate. From-SVN: r61511 --- gcc/collect2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/collect2.c') diff --git a/gcc/collect2.c b/gcc/collect2.c index c3287985adc..5b2f50d896f 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -2720,7 +2720,9 @@ ignore_library (name) } #endif /* COLLECT_EXPORT_LIST */ -extern char *ldgetname PARAMS ((struct ldfile *, void *)); +#if defined (HAVE_DECL_LDGETNAME) && !HAVE_DECL_LDGETNAME +extern char *ldgetname PARAMS ((LDFILE *, GCC_SYMENT *)); +#endif /* COFF version to scan the name list of the loaded program for the symbols g++ uses for static constructors and destructors. -- cgit v1.2.1