fix build failure with -Werror=undef
authorFelix Zhang <fezhang@suse.com>
Mon, 29 Aug 2016 07:02:14 +0000 (15:02 +0800)
committerJeremy Bicha <jbicha@debian.org>
Mon, 17 Sep 2018 13:44:04 +0000 (14:44 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=770533

Gbp-Pq: Name fix-undef-build-failure.patch

cogl/winsys/cogl-winsys-egl.c

index 39bfd884569646a4d2b38dbe0a2fe93e9da291f6..4a9f3aa6833e564349b1585edf1b7f9ef714be56 100644 (file)
@@ -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)