diff options
author | Alfred Peng <alfred.peng@sun.com> | 2006-08-07 08:41:13 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-08-07 08:41:13 -0700 |
commit | 04757a3aa8deeff3265719ebe01b021638990ec6 (patch) | |
tree | 0f043f992eef092d8c192964a44e9b101ec759b7 | |
parent | e2fddcccb43d06486d3680a19cfdd5a54963fcbd (diff) |
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
-rw-r--r-- | src/cairoint.h | 4 |
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 |