Sun compilers now support some gcc __attribute__ values
[mesa.git] / src / egl / main / eglcompiler.h
index f7c93f14ce22072f99c8ba04197511253c9dbdf3..5a3fb49ac22b01a95bcea9f3d5c5b37055d9bef3 100644 (file)
@@ -64,7 +64,8 @@
 /**
  * Function visibility
  */
-#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
+#if (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303) \
+       || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
 #  define PUBLIC __attribute__((visibility("default")))
 #else
 #  define PUBLIC