summaryrefslogtreecommitdiff
path: root/src/cairo-compiler-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-01-11 16:16:20 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-01-11 16:16:20 +0000
commit6d3ed950ea075ff2a5a569365b46c3cfc4152787 (patch)
treea7ffa60f2ce695147a908bf0368a31a81e921a3d /src/cairo-compiler-private.h
parentbe146f02e0e220aa70217bf348beef301a56f898 (diff)
downloadcairo-6d3ed950ea075ff2a5a569365b46c3cfc4152787.tar.gz
[check] Skip def/plt tests if the compiler doesn't support symbol hiding.
Compile a trivial program such that it reports whether cairo is hiding its internal symbols and skip the tests that depend upon it. This prevents false errors, such as bug 12726, where the user is presented with a scary make check failure.
Diffstat (limited to 'src/cairo-compiler-private.h')
-rw-r--r--src/cairo-compiler-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-compiler-private.h b/src/cairo-compiler-private.h
index da80b89e4..14aef47d5 100644
--- a/src/cairo-compiler-private.h
+++ b/src/cairo-compiler-private.h
@@ -72,10 +72,13 @@ CAIRO_BEGIN_DECLS
/* slim_internal.h */
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__) && !defined(__sun)
#define cairo_private_no_warn __attribute__((__visibility__("hidden")))
+#define CAIRO_HAS_HIDDEN_SYMBOLS 1
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
#define cairo_private_no_warn __hidden
+#define CAIRO_HAS_HIDDEN_SYMBOLS 1
#else /* not gcc >= 3.3 and not Sun Studio >= 8 */
#define cairo_private_no_warn
+#define CAIRO_HAS_HIDDEN_SYMBOLS 0
#endif
#ifndef WARN_UNUSED_RESULT