Bart Smaalders wrote:
> Of course, a declaration of
>
> #define EXTERN_TUNABLE /* Do not make static */
>
> in a kernel header might help prevent this:
>
> EXTERN_TUNABLE int foo;
If you wanted to prevent namespace pollution, you could probably
do something like:
#if defined(__GNUC__) && (__GNUC__ >= 4)
# define EXTERN_TUNABLE __attribute__((visibility("hidden")))
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
# define EXTERN_TUNABLE _hidden
#else
# define EXTERN_TUNABLE /* Do not make static */
#endif
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering