shared/platform: include weston-egl-ext.h only if ENABLE_EGL is defined

Including `weston-egl-ext.h` causes compilation failure for configurations
with EGL disabled.

Verified with `--disable-egl`, `--disable-x11-compositor`
and `--disable-drm-compositor`.

Signed-off-by: Krzysztof Konopko <kris@youview.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Krzysztof Konopko 2016-09-15 13:01:49 +02:00 committed by Pekka Paalanen
parent 4e2fa0abc3
commit e338ced1e0

View File

@ -33,9 +33,9 @@
#include <wayland-egl.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#endif
#include "weston-egl-ext.h"
#endif
#ifdef __cplusplus
extern "C" {