gallium: remove dependency on main/glheader.h in glxapi.c
authorBrian Paul <brianp@vmware.com>
Sun, 22 Feb 2009 22:37:57 +0000 (15:37 -0700)
committerBrian Paul <brianp@vmware.com>
Sun, 22 Feb 2009 22:37:57 +0000 (15:37 -0700)
Only needed it for the PUBLIC macro.

src/gallium/state_trackers/glx/xlib/glxapi.c

index 1ff04804f15a8e87c0b34bf6ad07a6a1962c1bf0..c2cb34d7cf79493c129e6e9f85231ce458e38bde 100644 (file)
 #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;