Evas GL: Fix build error on some systems w/o Wayland
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 3 Mar 2015 11:57:59 +0000 (20:57 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 3 Mar 2015 11:57:59 +0000 (20:57 +0900)
Thanks Mythri for the report.
wl_display and wl_resource is declared in eglmesaext.h but older
systems may not have that.

src/modules/evas/engines/gl_common/evas_gl_api_ext.c

index a8b024e..5f1e045 100644 (file)
@@ -17,6 +17,11 @@ typedef _getproc_fn (*fp_getproc)(const char *);
 # define EGL_NATIVE_PIXMAP_KHR 0x30b0
 #endif
 
+#ifndef EGL_WL_bind_wayland_display
+struct wl_display;
+struct wl_resource;
+#endif
+
 /////////////////////////////////////////////////////////////////////////////////////////////////////
 // Extension HEADER
 /////////////////////////////////////////////////////////////////////////////////////////////////////