mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
Use G_MODULE_SUFFIX rather than a hardcoded ".so". (#72803)
Sat Mar 2 14:46:17 2002 Owen Taylor <otaylor@redhat.com> * gmodule-beos.c (_g_module_build_path) * gmodule-dyld.c (_g_module_build_path) gmodule-dl.c (_g_module_build_path): Use G_MODULE_SUFFIX rather than a hardcoded ".so". (#72803)
This commit is contained in:
parent
12b78edbac
commit
c2d49b8f7e
@ -1,3 +1,9 @@
|
||||
Sat Mar 2 14:46:17 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmodule-beos.c (_g_module_build_path) * gmodule-dyld.c (_g_module_build_path)
|
||||
gmodule-dl.c (_g_module_build_path): Use G_MODULE_SUFFIX rather than
|
||||
a hardcoded ".so". (#72803)
|
||||
|
||||
Sun Feb 17 18:15:22 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gmodule.c (g_module_open): Fix typo when checking
|
||||
|
@ -190,10 +190,10 @@ _g_module_build_path (const gchar *directory,
|
||||
if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strconcat (directory, "/", module_name, NULL);
|
||||
else
|
||||
return g_strconcat (directory, "/lib", module_name, ".so", NULL);
|
||||
return g_strconcat (directory, "/lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
}
|
||||
else if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strdup (module_name);
|
||||
else
|
||||
return g_strconcat ("lib", module_name, ".so", NULL);
|
||||
return g_strconcat ("lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
}
|
||||
|
@ -154,9 +154,9 @@ _g_module_build_path (const gchar *directory,
|
||||
if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strconcat (directory, "/", module_name, NULL);
|
||||
else
|
||||
return g_strconcat (directory, "/lib", module_name, ".so", NULL);
|
||||
return g_strconcat (directory, "/lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
} else if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strdup (module_name);
|
||||
else
|
||||
return g_strconcat ("lib", module_name, ".so", NULL);
|
||||
return g_strconcat ("lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
}
|
||||
|
@ -141,10 +141,10 @@ _g_module_build_path (const gchar *directory,
|
||||
if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strconcat (directory, "/", module_name, NULL);
|
||||
else
|
||||
return g_strconcat (directory, "/lib", module_name, ".so", NULL);
|
||||
return g_strconcat (directory, "/lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
}
|
||||
else if (strncmp (module_name, "lib", 3) == 0)
|
||||
return g_strdup (module_name);
|
||||
else
|
||||
return g_strconcat ("lib", module_name, ".so", NULL);
|
||||
return g_strconcat ("lib", module_name, "." G_MODULE_SUFFIX, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user