diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_private.h b/legacy/ecore/src/lib/ecore_evas/ecore_evas_private.h index 6d45999bd5..37d34aa529 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_private.h +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_private.h @@ -79,13 +79,15 @@ # include #endif -#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM +#if defined(BUILD_ECORE_EVAS_WAYLAND_SHM) || defined(BUILD_ECORE_EVAS_WAYLAND_EGL) # include "Ecore_Wayland.h" +#endif + +#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM # include #endif #ifdef BUILD_ECORE_EVAS_WAYLAND_EGL -# include "Ecore_Wayland.h" # include #endif diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c index f881a4604b..2d9952457b 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_egl.c @@ -24,10 +24,10 @@ #include #include -#include "ecore_evas_private.h" #include "Ecore_Evas.h" #ifdef BUILD_ECORE_EVAS_WAYLAND_EGL +# include "ecore_evas_private.h" # include # include diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c index 58a417b18a..51a9c0a34d 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wayland_shm.c @@ -24,10 +24,10 @@ #include #include -#include "ecore_evas_private.h" #include "Ecore_Evas.h" #ifdef BUILD_ECORE_EVAS_WAYLAND_SHM +# include "ecore_evas_private.h" # include # include