summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cairoint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 447c1ac0b..9d1c789d2 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -97,7 +97,9 @@ CAIRO_BEGIN_DECLS
/* slim_internal.h */
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
#define cairo_private __attribute__((__visibility__("hidden")))
-#else
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+#define cairo_private __hidden
+#else /* not gcc >= 3.3 and not Sun Studio >= 8 */
#define cairo_private
#endif