On Thu, Jun 19, 2008 at 08:10:07AM -0700, Alan Coopersmith wrote:
> Fedor Sergeev wrote:
> >>  - Weak symbols:
> >>
> >> #if defined(__ELF__) && defined(__GNUC__) && (__GNUC__ >= 3)
> >> #define weak __attribute__((weak))
> >> #else
> >> #define weak
> >> #endif
> >>
> >> #ifdef __SUNPRO_C
> >> #pragma weak foo
> >> #endif
> > 
> > Just FYI.
> > Our C compiler is able to comprehend weak attribute starting with Sun 
> > Studio 12.
> 
> So that should become:
> #if defined(__ELF__) && ( (defined(__GNUC__) && (__GNUC__ >= 3)) ||
> (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) )
> 
> ?   Is it always available or only with -features=extensions?

By default (if not in strict -Xc mode).

regards,
  Fedor.

Reply via email to