summaryrefslogtreecommitdiffstats
path: root/wayland-client.h
diff options
context:
space:
mode:
Diffstat (limited to 'wayland-client.h')
-rw-r--r--wayland-client.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/wayland-client.h b/wayland-client.h
index d96e59c..138b045 100644
--- a/wayland-client.h
+++ b/wayland-client.h
@@ -1,6 +1,13 @@
#ifndef _WAYLAND_CLIENT_H
#define _WAYLAND_CLIENT_H
+/* GCC visibility */
+#if defined(__GNUC__) && __GNUC__ >= 4
+#define WL_EXPORT __attribute__ ((visibility("default")))
+#else
+#define WL_EXPORT
+#endif
+
struct wl_display;
struct wl_surface;