[PATCH] libiberty.h: Fix basename warning.
DJ Delorie
dj@redhat.com
Tue Sep 14 01:15:00 GMT 2004
Your patch was malformed (line wrap) and off by two months (it's
September now ;) but I manually applied it. Thanks!
Next time, please send libiberty patches to gcc-patches@gcc.gnu.org
> This patch matches what other systems are apparently doing and makes an
> annoying warning go away.
>
> I have a copyright assignment but no CVS privileges.
>
> 2004-07-13 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
>
> * libiberty.h (basename): Prototype for __MINGW32__.
>
> Index: src/include/libiberty.h
> ===================================================================
> RCS file: /cvs/src/src/include/libiberty.h,v
> retrieving revision 1.24
> diff -c -3 -p -r1.24 libiberty.h
> *** src/include/libiberty.h 15 May 2003 19:08:25 -0000 1.24
> --- src/include/libiberty.h 13 Jul 2004 12:06:35 -0000
> *************** extern char **dupargv PARAMS ((char **))
> *** 74,80 ****
> to find the declaration so provide a fully prototyped one. If it
> is 1, we found it so don't provide any declaration at all. */
> #if !HAVE_DECL_BASENAME
> ! #if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined
>
> (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined
>
> (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME)
> extern char *basename PARAMS ((const char *));
> #else
> extern char *basename ();
> --- 74,80 ----
> to find the declaration so provide a fully prototyped one. If it
> is 1, we found it so don't provide any declaration at all. */
> #if !HAVE_DECL_BASENAME
> ! #if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined
>
> (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined
>
> (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined
>
> (HAVE_DECL_BASENAME)
> extern char *basename PARAMS ((const char *));
> #else
> extern char *basename ();
>
More information about the Binutils
mailing list