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
This commit is contained in:
Alfred Peng 2006-08-07 08:41:13 -07:00 committed by Carl Worth
parent e2fddcccb4
commit 04757a3aa8

View file

@ -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