From db64103bf3d78cf6ba6fad06cba8b2d18d50d863 Mon Sep 17 00:00:00 2001 From: Cedric Bail Date: Thu, 11 Jul 2013 18:07:58 +0900 Subject: [PATCH] edje: fix build break on Windows. NOTE: In C, you can only mark an area const if it is not changed at runtime, this include also the job of the linker at runtime. So this array can't be const because they use pointer from Evas that will be resolved during link at runtime, instead of link at compile time. This pass on Linux, but fail on other architecture and is actually not correct. So let's not use const here. --- src/lib/edje/edje_callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/edje/edje_callbacks.c b/src/lib/edje/edje_callbacks.c index 8987ba7a8a..ad46ee0860 100644 --- a/src/lib/edje/edje_callbacks.c +++ b/src/lib/edje/edje_callbacks.c @@ -432,7 +432,7 @@ _edje_pending_timer_cb(void *data) return ECORE_CALLBACK_CANCEL; } -static const Eo_Callback_Array_Item edje_callbacks[] = { +static Eo_Callback_Array_Item edje_callbacks[] = { { EVAS_OBJECT_EVENT_HOLD, _edje_hold_signal_cb }, { EVAS_OBJECT_EVENT_MOUSE_IN, _edje_mouse_in_signal_cb }, { EVAS_OBJECT_EVENT_MOUSE_OUT, _edje_mouse_out_signal_cb }, @@ -443,7 +443,7 @@ static const Eo_Callback_Array_Item edje_callbacks[] = { { NULL, NULL } }; -static const Eo_Callback_Array_Item edje_focus_callbacks[] = { +static Eo_Callback_Array_Item edje_focus_callbacks[] = { { EVAS_OBJECT_EVENT_FOCUS_IN, _edje_focus_in_signal_cb }, { EVAS_OBJECT_EVENT_FOCUS_OUT, _edje_focus_out_signal_cb }, { NULL, NULL }