diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2012-05-24 10:13:44 +0100 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2012-05-25 10:34:59 +0100 |
commit | 7c8f47a9911e982c0689a80b3d62aff952f6d460 (patch) | |
tree | a753f515a1f73afd28da4f5eb0b52df09b06de23 /atk/atkutil.c | |
parent | 69c60a91dfa61590f806c83819614ae8b2a1224f (diff) | |
download | atk-7c8f47a9911e982c0689a80b3d62aff952f6d460.tar.gz |
Fixed compilation with index symbol
Apparently some versions of gcc or combination of options (or maybe
with the android NDK) lead to compilation failure :
atkutil.c:74: error: 'index' redeclared as different kind of symbol
This fixes the problem by renaming the variable.
Diffstat (limited to 'atk/atkutil.c')
-rwxr-xr-x | atk/atkutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/atk/atkutil.c b/atk/atkutil.c index bd1b252..9a06723 100755 --- a/atk/atkutil.c +++ b/atk/atkutil.c @@ -71,7 +71,7 @@ static gboolean init_done = FALSE; * Array of FocusTracker structs */ static GArray *trackers = NULL; -static guint index = 0; +static guint global_index = 0; typedef struct _FocusTracker FocusTracker; @@ -124,10 +124,10 @@ atk_add_focus_tracker (AtkEventListener focus_tracker) { FocusTracker item; - item.index = ++index; + item.index = ++global_index; item.func = focus_tracker; trackers = g_array_append_val (trackers, item); - return index; + return global_index; } else { |