From 32d5f2c7c3da438b7b2305c1441492eacce63b7c Mon Sep 17 00:00:00 2001 From: Koop Mast Date: Mon, 5 Jan 2015 12:49:25 +0100 Subject: [PATCH] Fix compiler warning if CAIRO_HAS_*_FUNCTIONS is not defined. --- src/cairo-gl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 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 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 cairo_public cairo_device_t * -- 2.2.1