mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-29 18:36:38 +02:00
Add missing g_pattern_match_simple and g_pattern_spec_equal.
2001-10-28 Tor Lillqvist <tml@iki.fi> * glib/glib.def: Add missing g_pattern_match_simple and g_pattern_spec_equal. * glib/gwin32.c (g_win32_get_package_installation_subdirectory): Set separator correctly. * glib/libcharset/config.charset (os): Match also mingw*. * tests/testglib.c (main): (Win32): Print the lib/locale subdirectory, as that is what actually gets used.
This commit is contained in:
committed by
Tor Lillqvist
parent
d59c859aec
commit
9c35df3de3
@@ -771,8 +771,12 @@ g_win32_get_package_installation_subdirectory (gchar *package,
|
||||
|
||||
prefix = g_win32_get_package_installation_directory (package, dll_name);
|
||||
|
||||
sep = ((subdir != NULL && strlen (subdir) > 0) || prefix[strlen (prefix) - 1] == G_DIR_SEPARATOR ?
|
||||
"" : G_DIR_SEPARATOR_S);
|
||||
if (subdir == NULL)
|
||||
subdir = "";
|
||||
|
||||
sep = (subdir[0] == '\0' ||
|
||||
prefix[strlen (prefix) - 1] == G_DIR_SEPARATOR) ?
|
||||
"" : G_DIR_SEPARATOR_S;
|
||||
|
||||
return g_strconcat (prefix, sep, subdir, NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user