gtk/inspector/css-node-tree.c: Fix Build

strcasecmp() is unfortunately not universally available, along with
strings.h.  Fix the build by replacing strcasecmp() with
g_ascii_strcasecmp(), and remove the strings.h include.

https://bugzilla.gnome.org/show_bug.cgi?id=747604
This commit is contained in:
Chun-wei Fan 2015-04-10 15:48:59 +08:00
parent f53737ad03
commit efd3758f6a

View File

@ -25,8 +25,6 @@
#include "css-node-tree.h"
#include <strings.h>
#include "gtktreemodelcssnode.h"
#include <gtk/gtktreeview.h>
#include "gtk/gtkwidgetprivate.h"
@ -76,7 +74,7 @@ sort_strv (gconstpointer a,
char **ap = (char **) a;
char **bp = (char **) b;
return strcasecmp (*ap, *bp);
return g_ascii_strcasecmp (*ap, *bp);
}
static void