std::string prefix = getenv ("LILYPOND_RELOCATE_PREFIX");
#ifdef __MINGW32__
/* Normalize file name. */
- prefix = File_name (prefix).to_string ().get_copy_str0 ();
+ prefix = File_name (prefix).to_string ();
#endif /* __MINGW32__ */
prefix_relocation (prefix);
std::string bindir = prefix + "/bin";
/* FIXME: use LILYPOND_DATADIR. */
if (char const *env = getenv ("LILYPONDPREFIX"))
{
+
#ifdef __MINGW32__
/* Normalize file name. */
- env = File_name (env).to_string ().get_copy_str0 ();
-#endif
+ prefix_directory = File_name (env).to_string ();
+#else
prefix_directory = env;
+#endif
}
global_path.append ("");
char *suffixes[] = {"ly", "ps", "scm", 0 };
- Array<std::string> dirs;
+ std::vector<std::string> dirs;
for (char **s = suffixes; *s; s++)
{
std::string path = prefix_directory + to_string ('/') + std::string (*s);
- dirs.push (path);
+ dirs.push_back (path);
}
- dirs.push (prefix_directory + "/fonts/otf/");
- dirs.push (prefix_directory + "/fonts/type1/");
- dirs.push (prefix_directory + "/fonts/svg/");
+ dirs.push_back (prefix_directory + "/fonts/otf/");
+ dirs.push_back (prefix_directory + "/fonts/type1/");
+ dirs.push_back (prefix_directory + "/fonts/svg/");
- for (int i = 0; i < dirs.size (); i++)
+ for (vsize i = 0; i < dirs.size (); i++)
global_path.prepend (dirs[i]);
}