[cairo-commit] boilerplate/Makefile.win32.features build/Makefile.win32.features-h src/cairo-xlib-xrender-private.h src/Makefile.win32.features

Chris Wilson ickle at kemper.freedesktop.org
Thu Apr 1 12:38:18 PDT 2010


 boilerplate/Makefile.win32.features |    8 --------
 build/Makefile.win32.features-h     |    1 -
 src/Makefile.win32.features         |    8 --------
 src/cairo-xlib-xrender-private.h    |   14 +++++++-------
 4 files changed, 7 insertions(+), 24 deletions(-)

New commits:
commit d209b40c64bddeb0d830678bc2f84e1016fed879
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Apr 1 20:36:15 2010 +0100

    xlib: Rearrange xrender stubs to restore compilation without xrender.h

diff --git a/boilerplate/Makefile.win32.features b/boilerplate/Makefile.win32.features
index 4781d8a..31bd4e0 100644
--- a/boilerplate/Makefile.win32.features
+++ b/boilerplate/Makefile.win32.features
@@ -199,14 +199,6 @@ enabled_cairo_boilerplate_private += $(cairo_boilerplate_png_private)
 enabled_cairo_boilerplate_sources += $(cairo_boilerplate_png_sources)
 endif
 
-supported_cairo_boilerplate_headers += $(cairo_boilerplate_glew_headers)
-all_cairo_boilerplate_headers += $(cairo_boilerplate_glew_headers)
-all_cairo_boilerplate_private += $(cairo_boilerplate_glew_private)
-all_cairo_boilerplate_sources += $(cairo_boilerplate_glew_sources)
-enabled_cairo_boilerplate_headers += $(cairo_boilerplate_glew_headers)
-enabled_cairo_boilerplate_private += $(cairo_boilerplate_glew_private)
-enabled_cairo_boilerplate_sources += $(cairo_boilerplate_glew_sources)
-
 unsupported_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
 all_cairo_boilerplate_headers += $(cairo_boilerplate_gl_headers)
 all_cairo_boilerplate_private += $(cairo_boilerplate_gl_private)
diff --git a/build/Makefile.win32.features-h b/build/Makefile.win32.features-h
index c2a5332..f7c07ac 100644
--- a/build/Makefile.win32.features-h
+++ b/build/Makefile.win32.features-h
@@ -59,7 +59,6 @@ endif
 ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)
 	@echo "#define CAIRO_HAS_PNG_FUNCTIONS 1" >> src/cairo-features.h
 endif
-	@echo "#define CAIRO_HAS_GLEW_FUNCTIONS 1" >> src/cairo-features.h
 ifeq ($(CAIRO_HAS_GL_SURFACE),1)
 	@echo "#define CAIRO_HAS_GL_SURFACE 1" >> src/cairo-features.h
 endif
diff --git a/src/Makefile.win32.features b/src/Makefile.win32.features
index 05efd04..42fb696 100644
--- a/src/Makefile.win32.features
+++ b/src/Makefile.win32.features
@@ -273,14 +273,6 @@ ifeq ($(CAIRO_HAS_PNG_FUNCTIONS),1)
 enabled_cairo_pkgconf += cairo-png.pc
 endif
 
-supported_cairo_headers += $(cairo_glew_headers)
-all_cairo_headers += $(cairo_glew_headers)
-all_cairo_private += $(cairo_glew_private)
-all_cairo_sources += $(cairo_glew_sources)
-enabled_cairo_headers += $(cairo_glew_headers)
-enabled_cairo_private += $(cairo_glew_private)
-enabled_cairo_sources += $(cairo_glew_sources)
-
 unsupported_cairo_headers += $(cairo_gl_headers)
 all_cairo_headers += $(cairo_gl_headers)
 all_cairo_private += $(cairo_gl_private)
diff --git a/src/cairo-xlib-xrender-private.h b/src/cairo-xlib-xrender-private.h
index 63a0ecb..61cf7dc 100644
--- a/src/cairo-xlib-xrender-private.h
+++ b/src/cairo-xlib-xrender-private.h
@@ -38,13 +38,6 @@
 
 #include <X11/Xlib.h>
 
-#if CAIRO_HAS_XLIB_XRENDER_SURFACE
-
-#include "cairo-xlib-xrender.h"
-
-#include <X11/extensions/Xrender.h>
-#include <X11/extensions/renderproto.h>
-
 /* These prototypes are used when defining interfaces missing from the
  * render headers.  As it happens, it is the case that all libxrender
  * functions take a pointer as first argument. */
@@ -55,6 +48,13 @@ __attribute__((__unused__)) static int    _int_consume         (void *p, ...)
 __attribute__((__unused__)) static void   _void_consume_free   (Display *p, XID n) { }
 
 
+#if CAIRO_HAS_XLIB_XRENDER_SURFACE
+
+#include "cairo-xlib-xrender.h"
+
+#include <X11/extensions/Xrender.h>
+#include <X11/extensions/renderproto.h>
+
 /* We require Render >= 0.6.  The following defines were only added in
  * 0.10.  Make sure they are defined.
  */


More information about the cairo-commit mailing list