summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-03-11 07:20:00 +0100
committerRobin Gareus <robin@gareus.org>2020-03-11 07:20:00 +0100
commitd979c9d09c6ae4c122eff0054d4e89a7eeaa4a02 (patch)
tree795c231f08fcab76a58a4deb263b67cfd7af7e43 /libs/pbd
parent7202f3ad28fc217cab8c8c0579b56c00545838a3 (diff)
Fix win32, mingw/gcc-8.3 builds
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/file_utils.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc
index 8247530fe3..120327e5c9 100644
--- a/libs/pbd/file_utils.cc
+++ b/libs/pbd/file_utils.cc
@@ -360,8 +360,12 @@ bool
hard_link (const std::string& existing_file, const std::string& new_path)
{
#ifdef PLATFORM_WINDOWS
+# if defined (COMPILER_MINGW) && !defined(_WIN64) && defined(__GNUC__) && __GNUC__ >= 8
+ return false; // 32bit windows, mingw
+# else
/* see also ntfs_link -- msvc only pbd extension */
return CreateHardLinkA (new_path.c_str(), existing_file.c_str(), NULL);
+# endif
#else
return 0 == link (existing_file.c_str(), new_path.c_str());
#endif