mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 07:58:04 +02:00
Revert "cairo-gl: Fix compiler warning if CAIRO_HAS_*_FUNCTIONS is not defined."
This reverts commit c8b6c6066a.
An undefined macro is evaluated as 0.
The preference is to use #if MACRO_NAME rather than #ifdef.
Conflicts:
src/cairo-gl.h
This commit is contained in:
parent
66bc7b8cb0
commit
c7cf0dfd60
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) && CAIRO_HAS_GLX_FUNCTIONS
|
||||
#if 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) && CAIRO_HAS_WGL_FUNCTIONS
|
||||
#if 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) && CAIRO_HAS_EGL_FUNCTIONS
|
||||
#if CAIRO_HAS_EGL_FUNCTIONS
|
||||
#include <EGL/egl.h>
|
||||
|
||||
cairo_public cairo_device_t *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue