mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 02:58:02 +02:00
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:
parent
e2fddcccb4
commit
04757a3aa8
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue