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:
Owen Taylor 2002-03-02 20:30:33 +00:00 committed by Owen Taylor
parent 12b78edbac
commit c2d49b8f7e
4 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}