Another libio patch
H.J. Lu
hjl@lucon.org
Sat Oct 11 09:49:00 GMT 1997
>
> hjl@lucon.org (H.J. Lu) writes:
>
> > Please discard my previous libio patch. This patch should
> > fix both glibc 2 and libc 5. Please let me know the result
> > on libc 5.3.12 on linux/x86.
>
> This looks much better. Though
>
> > #ifdef weak_alias
> > weak_alias (_IO_vsprintf, vsprintf)
> > +#else
> > +#ifdef __ELF__
> > +#pragma weak vsprintf = _IO_vsprintf
> > +#endif
> > #endif
>
> I don't think we should use the alias for other ELF systems (Solaris etc).
> I think this should read
>
> #if defined __linux__ && defined __ELF__
>
That is fine.
Thanks.
H.J.
More information about the Gcc
mailing list