diff --git a/legacy/evas/m4/ac_attribute.m4 b/legacy/evas/m4/ac_attribute.m4 index 3926d23d56..04bf5f2a49 100644 --- a/legacy/evas/m4/ac_attribute.m4 +++ b/legacy/evas/m4/ac_attribute.m4 @@ -39,8 +39,9 @@ AC_MSG_RESULT($ac_cv___attribute__) if test "x${ac_cv___attribute__}" = "xyes" ; then AC_DEFINE([HAVE___ATTRIBUTE__], [1], [Define to 1 if your compiler has __attribute__]) AC_DEFINE([__UNUSED__], [__attribute__((unused))], [Macro declaring a function argument to be unused]) + AC_DEFINE([__PACKED__], [__attribute__((packed))], [Macro declaring a function argument to be unused]) else - AC_DEFINE([__UNUSED__], [], [Macro declaring a function argument to be unused]) + AC_DEFINE([__PACKED__], [], [Macro declaring a function argument to be unused]) fi ]) diff --git a/legacy/evas/src/lib/canvas/evas_async_events.c b/legacy/evas/src/lib/canvas/evas_async_events.c index bba70721f5..0b92e482b1 100644 --- a/legacy/evas/src/lib/canvas/evas_async_events.c +++ b/legacy/evas/src/lib/canvas/evas_async_events.c @@ -21,7 +21,7 @@ struct _Evas_Event_Async void *event_info; void (*func)(void *target, Evas_Callback_Type type, void *event_info); Evas_Callback_Type type; -}; +} __PACKED__ ; #endif