glapi: minor ugliness to be able to copy to xorg
authorGeorge Sapountzis <gsapountzis@gmail.com>
Thu, 25 Feb 2010 15:52:04 +0000 (17:52 +0200)
committerGeorge Sapountzis <gsapountzis@gmail.com>
Thu, 25 Feb 2010 15:52:04 +0000 (17:52 +0200)
src/mesa/glapi/glapi.c
src/mesa/glapi/glapi_dispatch.c
src/mesa/glapi/glapi_getproc.c
src/mesa/glapi/glapi_nop.c
src/mesa/glapi/glthread.c

index 469523d57cffd5ca08a72a5778a983685db6933e..631ffba3c7fdb399cb3d084b68ef5f0827af7069 100644 (file)
 
 
 #ifdef HAVE_DIX_CONFIG_H
-
 #include <dix-config.h>
-#define PUBLIC
-
+#include "glapi/mesa.h"
 #else
-
 #include "main/glheader.h"
-
-#endif
-
 #include "main/compiler.h"
-
-#include <stdlib.h>
-#include <string.h>
-#ifdef DEBUG
-#include <assert.h>
 #endif
 
 #include "glapi/glapi.h"
index 4cb43f45055fbaf00794dd15a9fe76f62b017194..32b9535e3fcf0c037efbed052513220a657670b8 100644 (file)
  * \author Brian Paul <brian@precisioninsight.com>
  */
 
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#include "glapi/mesa.h"
+#else
 #include "main/glheader.h"
 #include "main/compiler.h"
+#endif
+
 #include "glapi/glapi.h"
 #include "glapi/glapitable.h"
 #include "glapi/glapidispatch.h"
index eecfb9c1ae1a87c838eb7b0578a03b087bb42594..69eb42c79ed126d0ee11f734c22da703900f231d 100644 (file)
  */
 
 
-#include <stdlib.h>
-#include <string.h>
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#include "glapi/mesa.h"
+#else
 #include "main/glheader.h"
 #include "main/compiler.h"
+#endif
+
 #include "glapi/glapi.h"
 #include "glapi/glapioffsets.h"
 #include "glapi/glapitable.h"
index aa84b9a169e1ad75a0f2a8c9ea331c1f9ee6144a..b1a718a5f0a5dfa89273092e6920d6a1736fd1b7 100644 (file)
 
 
 
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#include "glapi/mesa.h"
+#else
 #include "main/compiler.h"
 #include "main/glheader.h"
+#endif
+
 #include "glapi/glapi.h"
 
 #ifdef DEBUG
index 1c2c38657164ada1056f745e433416a4cca54586..be4e2f754d7d17fd16643c61bdc2e57e5f54dd2f 100644 (file)
 
 #ifdef HAVE_DIX_CONFIG_H
 #include <dix-config.h>
+#include "glapi/mesa.h"
+#else
+#include "main/compiler.h"
 #endif
 
-#include "main/compiler.h"
 #include "glapi/glthread.h"