[cairo-commit] src/cairo-gl.h

Bryce Harrington bryce at kemper.freedesktop.org
Sat Jun 27 01:16:29 PDT 2015


 src/cairo-gl.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c8b6c6066a238cf4cb04679e1149e956b1556a0c
Author: Koop Mast <kwm at rainbow-runner.nl>
Date:   Mon Jan 5 12:49:25 2015 +0100

    cairo-gl: Fix compiler warning if CAIRO_HAS_*_FUNCTIONS is not defined.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=88050
    
    [Updated to also still check the value of the macros]
    
    Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>

diff --git a/src/cairo-gl.h b/src/cairo-gl.h
index 9fd7608..daf8b46 100644
--- a/src/cairo-gl.h
+++ b/src/cairo-gl.h
@@ -92,7 +92,7 @@ cairo_public void
 cairo_gl_device_set_thread_aware (cairo_device_t	*device,
 				  cairo_bool_t		 thread_aware);
 
-#if CAIRO_HAS_GLX_FUNCTIONS
+#if defined(CAIRO_HAS_GLX_FUNCTIONS)
 #include <GL/glx.h>
 
 cairo_public cairo_device_t *
@@ -110,7 +110,7 @@ cairo_gl_surface_create_for_window (cairo_device_t *device,
 				    int width, int height);
 #endif
 
-#if CAIRO_HAS_WGL_FUNCTIONS
+#if defined(CAIRO_HAS_WGL_FUNCTIONS)
 #include <windows.h>
 
 cairo_public cairo_device_t *
@@ -126,7 +126,7 @@ cairo_gl_surface_create_for_dc (cairo_device_t		*device,
 				int			 height);
 #endif
 
-#if CAIRO_HAS_EGL_FUNCTIONS
+#if defined(CAIRO_HAS_EGL_FUNCTIONS)
 #include <EGL/egl.h>
 
 cairo_public cairo_device_t *


More information about the cairo-commit mailing list