cedric pushed a commit to branch master.
commit db64103bf3d78cf6ba6fad06cba8b2d18d50d863
Author: Cedric Bail <[email protected]>
Date: Thu Jul 11 18:07:58 2013 +0900
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 8987ba7..ad46ee0 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 }
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk