]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/relocate.cc
(setup_paths): mingw uses std string too.
[lilypond.git] / lily / relocate.cc
index 39ecf8670bcc174a191db6f2a42323950673a32d..1565eb4971307fc909f6dd83f8efb7035e1aef75 100644 (file)
@@ -182,7 +182,7 @@ setup_paths (char const *argv0_ptr)
       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";
@@ -237,11 +237,13 @@ setup_paths (char const *argv0_ptr)
   /* 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 ("");