This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Fix weak handling with GCC 3.4+
On Fri, Jan 03, 2003 at 11:59:03PM +0100, Jakub Jelinek wrote:
> Then
> #define __weak_extern_1(symbol) #symbol
> #define _weak_extern(symbol) _Pragma(__weak_extern_1(weak symbol)
> should work.
>
> Dunno if this is exactly what Andreas was testing, but at least
> the snipped he posted was different:
> #define __pragma_weak(expr) _Pragma(#expr)
> #define _weak_extern(symbol) __pragma_weak("weak " #symbol)
Or
#define __weak_extern_1(expr) _Pragma(#expr)
#define _weak_extern(symbol) __weak_extern_1(weak symbol)
too.
Jakub