Merge branch 'windows' of git.ardour.org:ardour/ardour into windows
[ardour.git] / libs / pbd / pathexpand.cc
index ae3bed4599df4ca04d06d3a2a030348b3a82ca4e..3f1f1cf670d12dfbb3719d42a6ddb7e7d334f9fd 100644 (file)
@@ -38,7 +38,7 @@ PBD::canonical_path (const std::string& path)
 {
 #ifdef COMPILER_MINGW
        return path;
-#endif
+#else
        char buf[PATH_MAX+1];
 
        if (!realpath (path.c_str(), buf) && (errno != ENOENT)) {
@@ -46,6 +46,7 @@ PBD::canonical_path (const std::string& path)
        }
 
        return string (buf);
+#endif
 }
 
 string