2006-01-26 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/relocate.cc (setup_paths): mingw uses std string too.
+
* lily/*.cc: various fixes for substr(ARG).
* lily/sustain-pedal.cc (print):
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 ("");