mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Fix win32, mingw/gcc-8.3 builds
This commit is contained in:
parent
7202f3ad28
commit
d979c9d09c
1 changed files with 4 additions and 0 deletions
|
|
@ -360,8 +360,12 @@ bool
|
||||||
hard_link (const std::string& existing_file, const std::string& new_path)
|
hard_link (const std::string& existing_file, const std::string& new_path)
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_WINDOWS
|
#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 */
|
/* see also ntfs_link -- msvc only pbd extension */
|
||||||
return CreateHardLinkA (new_path.c_str(), existing_file.c_str(), NULL);
|
return CreateHardLinkA (new_path.c_str(), existing_file.c_str(), NULL);
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
return 0 == link (existing_file.c_str(), new_path.c_str());
|
return 0 == link (existing_file.c_str(), new_path.c_str());
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue