mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 10:07:13 +02:00
Use g_ascii_strcasecmp().
2003-01-01 Tor Lillqvist <tml@iki.fi> * gmodule-win32.c (_g_module_build_path): Use g_ascii_strcasecmp().
This commit is contained in:
committed by
Tor Lillqvist
parent
c0d195bf8c
commit
95b557b20e
@@ -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>
|
Tue Dec 3 20:56:19 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gmodule.c (g_module_open): Properly refcount the
|
* gmodule.c (g_module_open): Properly refcount the
|
||||||
|
@@ -227,13 +227,13 @@ _g_module_build_path (const gchar *directory,
|
|||||||
k = strlen (module_name);
|
k = strlen (module_name);
|
||||||
|
|
||||||
if (directory && *directory)
|
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);
|
return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, NULL);
|
||||||
else if (strncmp (module_name, "lib", 3) == 0)
|
else if (strncmp (module_name, "lib", 3) == 0)
|
||||||
return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, ".dll", NULL);
|
return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, ".dll", NULL);
|
||||||
else
|
else
|
||||||
return g_strconcat (directory, G_DIR_SEPARATOR_S, "lib", module_name, ".dll", NULL);
|
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);
|
return g_strdup (module_name);
|
||||||
else if (strncmp (module_name, "lib", 3) == 0)
|
else if (strncmp (module_name, "lib", 3) == 0)
|
||||||
return g_strconcat (module_name, ".dll", NULL);
|
return g_strconcat (module_name, ".dll", NULL);
|
||||||
|
Reference in New Issue
Block a user