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.
* Array of FocusTracker structs
*/
static GArray *trackers = NULL;
-static guint index = 0;
+static guint global_index = 0;
typedef struct _FocusTracker FocusTracker;
{
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
{