build: don't referencing wayland syms if not available

cogl-winsys-egl-feature-functions.h was unconditionally depending on the
struct wl_display type being defined. This guards the check for the
"WL_bind_wayland_display" extension with
 #ifdef COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT

Signed-off-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Robert Bragg 2011-07-13 12:42:22 +01:00
parent 27c0da6685
commit 1527b017c5

View File

@ -73,6 +73,7 @@ COGL_WINSYS_FEATURE_BEGIN (image_pixmap,
"image_pixmap\0", "image_pixmap\0",
COGL_EGL_WINSYS_FEATURE_EGL_IMAGE_FROM_X11_PIXMAP) COGL_EGL_WINSYS_FEATURE_EGL_IMAGE_FROM_X11_PIXMAP)
COGL_WINSYS_FEATURE_END () COGL_WINSYS_FEATURE_END ()
#ifdef COGL_HAS_EGL_PLATFORM_WAYLAND_SUPPORT
COGL_WINSYS_FEATURE_BEGIN (bind_wayland_display, COGL_WINSYS_FEATURE_BEGIN (bind_wayland_display,
"WL\0", "WL\0",
"bind_wayland_display\0", "bind_wayland_display\0",
@ -84,3 +85,4 @@ COGL_WINSYS_FEATURE_FUNCTION (EGLBoolean, eglUnbindWaylandDisplay,
(EGLDisplay dpy, (EGLDisplay dpy,
struct wl_display *wayland_display)) struct wl_display *wayland_display))
COGL_WINSYS_FEATURE_END () COGL_WINSYS_FEATURE_END ()
#endif