[libgis] Switch g_strcmp0 to plain strcmp for glib < 2.16
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgis] Switch g_strcmp0 to plain strcmp for glib < 2.16
- Date: Fri, 10 Sep 2010 03:18:14 +0000 (UTC)
commit 012211baff9a2860141e4b70cfa2a98fc7001dea
Author: Andy Spencer <andy753421 gmail com>
Date: Tue May 18 03:25:44 2010 +0000
Switch g_strcmp0 to plain strcmp for glib < 2.16
Makefile.am | 1 -
src/gis-plugin.c | 4 +++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index f8becba..d954af1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,5 +31,4 @@ depscan:
--book=libsoup-2.4 \
--book=pango \
--list-unknown \
- "$@" \
src/*.c
diff --git a/src/gis-plugin.c b/src/gis-plugin.c
index 537400e..9eb2d21 100644
--- a/src/gis-plugin.c
+++ b/src/gis-plugin.c
@@ -38,6 +38,8 @@
#include <glib.h>
#include <gmodule.h>
+#include <string.h>
+
#include "gis-plugin.h"
/********************
@@ -201,7 +203,7 @@ GList *gis_plugins_available(GisPlugins *plugins)
}
g_dir_close(dir);
}
- list = g_list_sort(list, (GCompareFunc)g_strcmp0);
+ list = g_list_sort(list, (GCompareFunc)strcmp);
for (GList *cur = list; cur; cur = cur->next)
while (cur->next && g_str_equal(cur->data,cur->next->data)) {
GList *tmp = cur->next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]