#ifdef TIZEN_BUILD
+#ifdef ECORE_WL2
+#include <Ecore_Wl2.h>
+#else
#include <Ecore_Wayland.h>
#endif
+#endif
#undef LOG
//#define LOG DALI_LOG_ERROR
Dali::Any result;
try {
result = _win->GetNativeHandle();
-
+#ifdef TIZEN_BUILD
+#ifdef ECORE_WL2
+ Ecore_Wl2_Window * ecore_win = Dali::AnyCast<Ecore_Wl2_Window*>(result);
+#else
Ecore_Wl_Window * ecore_win = Dali::AnyCast<Ecore_Wl_Window*>(result);
+#endif
+#endif
ret = (void*)ecore_win;
} catch (std::out_of_range& e) {