summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Peng <alfred.peng@sun.com>2006-09-29 17:16:47 -0700
committerBehdad Esfahbod <behdad@behdad.org>2006-10-31 21:16:22 -0500
commita3ac198b0ab380225f8998f20e5423036f0dadcb (patch)
tree4ce8662827eca467d50a36830ca84d0f64ac23c7
parentba8b0c0268e7f2cfcc32b7918730d0b10eadcf61 (diff)
Add Sun Pro C definition of pixman_private
(cherry picked from c1495742f76ce380aaa48389bc331723b7a3a141 commit)
-rw-r--r--pixman/src/slim_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pixman/src/slim_internal.h b/pixman/src/slim_internal.h
index 3d1e9a64f..9a93972f6 100644
--- a/pixman/src/slim_internal.h
+++ b/pixman/src/slim_internal.h
@@ -49,7 +49,9 @@
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
#define pixman_private __attribute__((__visibility__("hidden")))
-#else
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+#define pixman_private __hidden
+#else /* not gcc >= 3.3 and not Sun Studio >= 8 */
#define pixman_private
#endif