Francois Gouget fgouget@free.fr writes:
Another option would be to check for __sun in winnt.h:
-#elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3))) +#elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3))) && !defined(__sun)
The drawback is it means we will never use the visibility attribute on Solaris, even if it is supported (one day or in some configuration). That's probably a very minor drawback and it seems like the simplest solution so maybe this would make sense.
Yes, that would be fine.