From: Felix Zhang Date: Mon, 29 Aug 2016 07:02:14 +0000 (+0800) Subject: fix build failure with -Werror=undef X-Git-Tag: archive/raspbian/1.22.2-5+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2b960137ef13b189510246293999ac1ab09c2768;p=cogl.git fix build failure with -Werror=undef https://bugzilla.gnome.org/show_bug.cgi?id=770533 Gbp-Pq: Name fix-undef-build-failure.patch --- diff --git a/cogl/winsys/cogl-winsys-egl.c b/cogl/winsys/cogl-winsys-egl.c index 39bfd88..4a9f3aa 100644 --- a/cogl/winsys/cogl-winsys-egl.c +++ b/cogl/winsys/cogl-winsys-egl.c @@ -1029,7 +1029,7 @@ _cogl_egl_create_image (CoglContext *ctx, egl_ctx = EGL_NO_CONTEXT; else #endif -#if COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT +#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT /* The WL_bind_wayland_display spec states that EGL_NO_CONTEXT is to be used * in conjunction with the EGL_WAYLAND_BUFFER_WL target */ if (target == EGL_WAYLAND_BUFFER_WL)