From b7a01928beda1f9ada42e6a32c5d8ab0400d1069 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Sat, 8 Nov 2008 15:39:41 -0500 Subject: Add prototypes warnings, use -fvisibility. --- wayland-client.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wayland-client.h') 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; -- cgit