help on fucntion visibility

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, 

I know that the current version gcc supports function visibility
attributes, yet some of the previous versions does not. 

Could any one kindly tell since which version is visibility attribute
supported by gcc? So that I will be able to write some conditional
macros definition code to make things more flexible? 

The macro definition is supposed to be something like:
#if ((__GNUC__ *100 +__GNUC_MINOR__) >= 303)
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
#else
#define G_GNUC_INTERNAL
#endif

Thanks in advance. 

--Irene


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux