summaryrefslogtreecommitdiff
path: root/src/xcbint.h
diff options
context:
space:
mode:
authorTORRI Vincent <Vincent.Torri@iecn.u-nancy.fr>2006-03-07 10:25:23 -0800
committerJamey Sharp <jamey@minilop.net>2006-03-07 10:25:23 -0800
commit522a6e0eac9adeaac533a5b700f42d85d46e2dd7 (patch)
treec7b1a477737bf0a98be7f435061f84ab8e1cf98e /src/xcbint.h
parent5437032c7dee85da99b612a707fa94d012d40282 (diff)
Use the GCC 4 visibility extension to mark everything in xcbint.h hidden.
Diffstat (limited to 'src/xcbint.h')
-rw-r--r--src/xcbint.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xcbint.h b/src/xcbint.h
index f3830f9..7c8f331 100644
--- a/src/xcbint.h
+++ b/src/xcbint.h
@@ -32,6 +32,10 @@
#include "config.h"
#endif
+#ifdef GCC_HAS_VISIBILITY
+#pragma GCC visibility push(hidden)
+#endif
+
enum workarounds {
WORKAROUND_NONE,
WORKAROUND_GLX_GET_FB_CONFIGS_BUG
@@ -154,4 +158,9 @@ struct XCBConnection {
};
int _xcb_conn_wait(XCBConnection *c, const int should_write, pthread_cond_t *cond);
+
+#ifdef GCC_HAS_VISIBILITY
+#pragma GCC visibility pop
+#endif
+
#endif