Added g_slist_nth_data() to glib-new.o so that glib-1.0.x, x < 4, will work.
It seems that a stable version of the library received a new function. This should help RedHat folks, since they seem to have glib-1.0.1. svn path=/trunk/; revision=216
This commit is contained in:
parent
ca662881cb
commit
f19fe6afea
|
@ -89,4 +89,17 @@ g_strjoin (const gchar *separator,
|
|||
|
||||
return string;
|
||||
}
|
||||
|
||||
/* this was introduced sometime between glib-1.0.1 and glib-1.0.4 */
|
||||
gpointer
|
||||
g_slist_nth_data (GSList *list,
|
||||
guint n)
|
||||
{
|
||||
while ((n-- > 0) && list)
|
||||
list = list->next;
|
||||
|
||||
return list ? list->data : NULL;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -24,3 +24,7 @@ g_memdup (const gpointer mem,
|
|||
gchar*
|
||||
g_strjoin (const gchar *separator,
|
||||
...);
|
||||
|
||||
gpointer
|
||||
g_slist_nth_data (GSList *list,
|
||||
guint n);
|
||||
|
|
Loading…
Reference in New Issue