Add prototypes warnings, use -fvisibility.

This commit is contained in:
Kristian Høgsberg 2008-11-08 15:39:41 -05:00
parent f099fd24a3
commit b7a01928be
9 changed files with 79 additions and 55 deletions

View file

@ -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;