summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/glx
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-02-22 15:37:57 -0700
committerBrian Paul <[email protected]>2009-02-22 15:37:57 -0700
commit022e446c78d294d70129c9e4293b5c7e444a3cbd (patch)
tree5b269cba269998c86a579ebf27be8466caf93e29 /src/gallium/state_trackers/glx
parente5e255a4062bd96390a3eaa3c83aa40001b6de95 (diff)
gallium: remove dependency on main/glheader.h in glxapi.c
Only needed it for the PUBLIC macro.
Diffstat (limited to 'src/gallium/state_trackers/glx')
-rw-r--r--src/gallium/state_trackers/glx/xlib/glxapi.c10
1 files changed, 9 insertions, 1 deletions
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 <stdlib.h>
#include <stdio.h>
#include <string.h>
-#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;