From 11335e4bf030d9442b659447c23dcb92c9460163 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 17 Jul 2013 19:05:01 +1000 Subject: Allow PBD::canonical_path to compile with mingw build --- libs/pbd/pathexpand.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/pbd/pathexpand.cc') diff --git a/libs/pbd/pathexpand.cc b/libs/pbd/pathexpand.cc index ad53bea37b..89fc148ad7 100644 --- a/libs/pbd/pathexpand.cc +++ b/libs/pbd/pathexpand.cc @@ -38,7 +38,7 @@ PBD::canonical_path (const std::string& path) { #ifdef WIN32 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 -- cgit v1.2.3