1
1

When on Windows systems, use ";" as a path delimiter

This commit was SVN r4125.
Этот коммит содержится в:
Jeff Squyres 2005-01-24 22:53:28 +00:00
родитель e0e47f37a4
Коммит 4ee895c243
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -193,7 +193,11 @@ static void find_dyn_components(const char *path, const char *type_name,
dir = path_to_use;
if (NULL != dir) {
do {
#ifdef WIN32
end = strchr(dir, ';');
#else
end = strchr(dir, ':');
#endif
if (NULL != end) {
*end = '\0';
}

Просмотреть файл

@ -60,7 +60,11 @@ int mca_base_open(void)
/* Register some params */
#ifdef WIN32
asprintf(&value, "%s;~/.openmpi/components", OMPI_PKGLIBDIR);
#else
asprintf(&value, "%s:~/.openmpi/components", OMPI_PKGLIBDIR);
#endif
mca_base_param_component_path =
mca_base_param_register_string("base", NULL, "component_path",
"component_path", value);