> - 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. regards, Fedor. > > weak int foo(int bar); > > > -Alan Coopersmith- alan.coopersmith at sun.com > Sun Microsystems, Inc. - X Window System Engineering
