mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-09 07:40:43 +01:00
cairo-gl: Still check the value of the macros
Just because they're defined doesn't mean they've been enabled.
This commit is contained in:
parent
c8b6c6066a
commit
06a2696d5f
1 changed files with 3 additions and 3 deletions
|
|
@ -92,7 +92,7 @@ cairo_public void
|
|||
cairo_gl_device_set_thread_aware (cairo_device_t *device,
|
||||
cairo_bool_t thread_aware);
|
||||
|
||||
#if defined(CAIRO_HAS_GLX_FUNCTIONS)
|
||||
#if defined(CAIRO_HAS_GLX_FUNCTIONS) && 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 defined(CAIRO_HAS_WGL_FUNCTIONS)
|
||||
#if defined(CAIRO_HAS_WGL_FUNCTIONS) && 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 defined(CAIRO_HAS_EGL_FUNCTIONS)
|
||||
#if defined(CAIRO_HAS_EGL_FUNCTIONS) && CAIRO_HAS_EGL_FUNCTIONS
|
||||
#include <EGL/egl.h>
|
||||
|
||||
cairo_public cairo_device_t *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue