]> Pileus Git - grits/commitdiff
Use G_MODULE_SUFFIX in gis-plugin v0.3.x
authorAndy Spencer <andy753421@gmail.com>
Wed, 11 Nov 2009 09:58:07 +0000 (09:58 +0000)
committerAndy Spencer <andy753421@gmail.com>
Wed, 11 Nov 2009 10:27:11 +0000 (10:27 +0000)
src/gis-plugin.c

index 57ad922427582cdab19e52235148e83eba53f421..c6382380d5646d2f58ce2c43662c0fc2a1fe313d 100644 (file)
@@ -108,7 +108,7 @@ GList *gis_plugins_available(GisPlugins *self)
                g_debug("            checking %s", dirs[i]);
                const gchar *name;
                while ((name = g_dir_read_name(dir))) {
-                       if (g_pattern_match_simple("*.so", name)) {
+                       if (g_pattern_match_simple("*." G_MODULE_SUFFIX, name)) {
                                gchar **parts = g_strsplit(name, ".", 2);
                                list = g_list_prepend(list, g_strdup(parts[0]));
                                g_strfreev(parts);