[gtk+] gtk/inspector/css-node-tree.c: Fix Build
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/inspector/css-node-tree.c: Fix Build
- Date: Fri, 10 Apr 2015 09:18:22 +0000 (UTC)
commit efd3758f6a779041ff552cb4c5163446fd951368
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Apr 10 15:48:59 2015 +0800
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
gtk/inspector/css-node-tree.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c
index ca48f2b..03a9a99 100644
--- a/gtk/inspector/css-node-tree.c
+++ b/gtk/inspector/css-node-tree.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]