forked from AuroraMiddleware/gtk
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:
parent
f53737ad03
commit
efd3758f6a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user