[cairo-commit] src/cairoint.h

Carl Worth cworth at kemper.freedesktop.org
Mon Aug 7 08:42:48 PDT 2006


 src/cairoint.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

New commits:
diff-tree 04757a3aa8deeff3265719ebe01b021638990ec6 (from e2fddcccb43d06486d3680a19cfdd5a54963fcbd)
Author: Alfred Peng <alfred.peng at sun.com>
Date:   Mon Aug 7 08:41:13 2006 -0700

    Add definition of cairo_private for some Sun compilers.
    
    In addition to helping us preserve a sharp line between which symbols are
    part of the public API and which are private parts of the implementation,
    this can also help mozilla avoid clashes between its modified, internal
    copy of cairo and the system version of cairo. See the mozilla bug here:
    
    https://bugzilla.mozilla.org/show_bug.cgi?id=341874

diff --git a/src/cairoint.h b/src/cairoint.h
index 447c1ac..9d1c789 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
 


More information about the cairo-commit mailing list