diff --git a/legacy/evas/src/lib/canvas/evas_async_events.c b/legacy/evas/src/lib/canvas/evas_async_events.c index 17343e1961..8b4e085794 100644 --- a/legacy/evas/src/lib/canvas/evas_async_events.c +++ b/legacy/evas/src/lib/canvas/evas_async_events.c @@ -1,6 +1,3 @@ -#include "evas_common.h" -#include "evas_private.h" - #ifdef BUILD_ASYNC_EVENTS # ifndef _MSC_VER @@ -9,6 +6,13 @@ # include # include +#endif + +#include "evas_common.h" +#include "evas_private.h" + +#ifdef BUILD_ASYNC_EVENTS + static int _fd_write = -1; static int _fd_read = -1; @@ -159,7 +163,7 @@ evas_async_events_put(const void *target, Evas_Callback_Type type, void *event_i return result; #else - func(target, type, event_info); + func((void*) target, type, event_info); return EINA_TRUE; #endif }