OSDN Git Service

glx: remove #include "glheader.h" lines
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Sep 2008 19:26:30 +0000 (13:26 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 18 Sep 2008 19:26:30 +0000 (13:26 -0600)
Was only used to get the PUBLIC/USED macros.
Also, replace "GL_FALSE" with "False" in a couple places.

15 files changed:
src/glx/x11/Makefile
src/glx/x11/dri2.c
src/glx/x11/dri2_glx.c
src/glx/x11/dri_common.c
src/glx/x11/dri_glx.c
src/glx/x11/drisw_glx.c
src/glx/x11/glx_pbuffer.c
src/glx/x11/glxclient.h
src/glx/x11/glxcmds.c
src/glx/x11/glxcurrent.c
src/glx/x11/glxext.c
src/glx/x11/glxextensions.c
src/glx/x11/indirect_vertex_program.c
src/glx/x11/pixelstore.c
src/glx/x11/singlepix.c

index 5d9c61c..8d4a23f 100644 (file)
@@ -50,7 +50,6 @@ OBJECTS = $(SOURCES:.c=.o) $(MESA_GLAPI_OBJECTS)
 INCLUDES = -I. \
        -I$(TOP)/include \
        -I$(TOP)/include/GL/internal \
-       -I$(TOP)/src/mesa/main \
        -I$(TOP)/src/mesa/glapi \
        $(LIBDRM_CFLAGS) \
        $(DRI2PROTO_CFLAGS) \
index dc60af9..5acf7ac 100644 (file)
@@ -36,7 +36,6 @@
 #include <X11/extensions/Xext.h>
 #include <X11/extensions/extutil.h>
 #include <X11/extensions/dri2proto.h>
-#include "glheader.h"
 #include "xf86drm.h"
 #include "dri2.h"
 
@@ -289,7 +288,7 @@ void DRI2DestroyDrawable(Display *dpy, XID drawable)
 
     XextSimpleCheckExtension (dpy, info, dri2ExtensionName);
 
-    XSync(dpy, GL_FALSE);
+    XSync(dpy, False);
 
     LockDisplay(dpy);
     GetReq(DRI2DestroyDrawable, req);
index 3c366bf..ed90546 100644 (file)
@@ -35,7 +35,6 @@
 #include <X11/Xlib.h>
 #include <X11/extensions/Xfixes.h>
 #include <X11/extensions/Xdamage.h>
-#include "glheader.h"
 #include "glxclient.h"
 #include "glcontextmodes.h"
 #include "xf86dri.h"
index 8175f46..fbce6ac 100644 (file)
@@ -37,7 +37,7 @@
 
 #include <unistd.h>
 #include <dlfcn.h>
-#include "glheader.h"
+#include <stdarg.h>
 #include "glxclient.h"
 #include "glcontextmodes.h"
 #include "dri_common.h"
index 39bf6c4..47203f5 100644 (file)
@@ -37,7 +37,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include <X11/Xlib.h>
 #include <X11/extensions/Xfixes.h>
 #include <X11/extensions/Xdamage.h>
-#include "glheader.h"
 #include "glxclient.h"
 #include "glcontextmodes.h"
 #include "xf86dri.h"
index ad7b5eb..7bb4794 100644 (file)
@@ -24,7 +24,6 @@
 #ifdef GLX_DIRECT_RENDERING
 
 #include <X11/Xlib.h>
-#include "glheader.h"
 #include "glxclient.h"
 #include "glcontextmodes.h"
 #include <dlfcn.h>
index 0f878f2..fb2610a 100644 (file)
@@ -38,7 +38,6 @@
 #include "glapi.h"
 #include "glxextensions.h"
 #include "glcontextmodes.h"
-#include "glheader.h"
 
 
 /**
index 4125112..b10c2ae 100644 (file)
 
 #include "glxextensions.h"
 
+
+/* If we build the library with gcc's -fvisibility=hidden flag, we'll
+ * use the PUBLIC macro to mark functions that are to be exported.
+ *
+ * We also need to define a USED attribute, so the optimizer doesn't 
+ * inline a static function that we later use in an alias. - ajax
+ */
+#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
+#  define PUBLIC __attribute__((visibility("default")))
+#  define USED __attribute__((used))
+#else
+#  define PUBLIC
+#  define USED
+#endif
+
+
+
 #define GLX_MAJOR_VERSION      1       /* current version numbers */
 #define GLX_MINOR_VERSION      4
 
index 9197130..bb0e53c 100644 (file)
@@ -43,7 +43,6 @@
 #include "glapi.h"
 #include "glxextensions.h"
 #include "glcontextmodes.h"
-#include "glheader.h"
 
 #ifdef GLX_DIRECT_RENDERING
 #include <sys/time.h>
index 0d0c419..61cd9b3 100644 (file)
@@ -40,7 +40,6 @@
 
 #include "glxclient.h"
 #include "glapi.h"
-#include "glheader.h"
 #include "indirect_init.h"
 
 #ifdef GLX_DIRECT_RENDERING
index 0d6d25e..370a429 100644 (file)
  * \author Kevin E. Martin <kevin@precisioninsight.com>
  */     
 
+#include <assert.h>
 #include "glxclient.h"
 #include <X11/extensions/Xext.h>
 #include <X11/extensions/extutil.h>
 #include "glapi.h"
 #include "glxextensions.h"
 #include "glcontextmodes.h"
-#include "glheader.h"
 
 #ifdef USE_XCB
 #include <X11/Xlib-xcb.h>
index e843718..f2b169a 100644 (file)
@@ -34,7 +34,7 @@
 #include <string.h>
 #include "glapi.h"
 #include "glxextensions.h"
-#include "simple_list.h"
+
 
 #define SET_BIT(m,b)   (m[ (b) / 8 ] |=  (1U << ((b) % 8)))
 #define CLR_BIT(m,b)   (m[ (b) / 8 ] &= ~(1U << ((b) % 8)))
index 4f1485a..0a1091e 100644 (file)
@@ -23,7 +23,6 @@
  * SOFTWARE.
  */
 
-#include "glheader.h"
 #include <inttypes.h>
 #include <GL/gl.h>
 #include "indirect.h"
index 8431b29..3bf1b35 100644 (file)
@@ -34,7 +34,6 @@
 **
 */
 
-#include "glheader.h"
 #include "glxclient.h"
 #include "indirect.h"
 
index 77bd4a6..d8ad2b1 100644 (file)
@@ -34,7 +34,6 @@
 **
 */
 
-#include "glheader.h"
 #include "packsingle.h"
 #include "indirect.h"
 #include "dispatch.h"