From: Brian Paul Date: Sun, 22 Feb 2009 22:37:57 +0000 (-0700) Subject: gallium: remove dependency on main/glheader.h in glxapi.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=022e446c78d294d70129c9e4293b5c7e444a3cbd;p=mesa.git gallium: remove dependency on main/glheader.h in glxapi.c Only needed it for the PUBLIC macro. --- diff --git a/src/gallium/state_trackers/glx/xlib/glxapi.c b/src/gallium/state_trackers/glx/xlib/glxapi.c index 1ff04804f15..c2cb34d7cf7 100644 --- a/src/gallium/state_trackers/glx/xlib/glxapi.c +++ b/src/gallium/state_trackers/glx/xlib/glxapi.c @@ -34,13 +34,21 @@ #include #include #include -#include "main/glheader.h" #include "glapi/glapi.h" #include "glxapi.h" #include "fakeglx.h" #include "pipe/p_thread.h" +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 +# define PUBLIC __attribute__((visibility("default"))) +# define USED __attribute__((used)) +#else +# define PUBLIC +# define USED +#endif + + struct display_dispatch { Display *Dpy; struct _glxapi_table *Table;