summaryrefslogtreecommitdiff
path: root/gmodule
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2003-01-04 03:54:35 +0000
committerTor Lillqvist <tml@src.gnome.org>2003-01-04 03:54:35 +0000
commit53266027ee414258c6c7d441af7f85d3ea081701 (patch)
tree23684b7f3036d918bf991ea2782a2f21c48bff7d /gmodule
parent3fa609363c0af6cbfb7f9256a8a18b9e005f2a46 (diff)
downloadglib-53266027ee414258c6c7d441af7f85d3ea081701.tar.gz
Use g_ascii_strcasecmp().
2003-01-01 Tor Lillqvist <tml@iki.fi> * gmodule-win32.c (_g_module_build_path): Use g_ascii_strcasecmp().
Diffstat (limited to 'gmodule')
-rw-r--r--gmodule/ChangeLog4
-rw-r--r--gmodule/gmodule-win32.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog
index 8f6879bb5..37a87a785 100644
--- a/gmodule/ChangeLog
+++ b/gmodule/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-01 Tor Lillqvist <tml@iki.fi>
+
+ * gmodule-win32.c (_g_module_build_path): Use g_ascii_strcasecmp().
+
Tue Dec 3 20:56:19 2002 Owen Taylor <otaylor@redhat.com>
* gmodule.c (g_module_open): Properly refcount the
diff --git a/gmodule/gmodule-win32.c b/gmodule/gmodule-win32.c
index 5fdf92886..ebf0cbb55 100644
--- a/gmodule/gmodule-win32.c
+++ b/gmodule/gmodule-win32.c
@@ -227,13 +227,13 @@ _g_module_build_path (const gchar *directory,
k = strlen (module_name);
if (directory && *directory)
- if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0)
+ if (k > 4 && g_ascii_strcasecmp (module_name + k - 4, ".dll") == 0)
return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, NULL);
else if (strncmp (module_name, "lib", 3) == 0)
return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, ".dll", NULL);
else
return g_strconcat (directory, G_DIR_SEPARATOR_S, "lib", module_name, ".dll", NULL);
- else if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0)
+ else if (k > 4 && g_ascii_strcasecmp (module_name + k - 4, ".dll") == 0)
return g_strdup (module_name);
else if (strncmp (module_name, "lib", 3) == 0)
return g_strconcat (module_name, ".dll", NULL);