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?

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to