mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
removed canonicalize_file_name from MacOS compilation
This commit is contained in:
parent
5f69c9ea1f
commit
3f3efca22d
@ -145,7 +145,7 @@ void LocalDirectoryUpdater::recursUpdateSharedDir(const std::string& cumulated_p
|
||||
std::string real_path = RsDirUtil::removeSymLinks(cumulated_path) ;
|
||||
if(existing_directories.end() != existing_directories.find(real_path))
|
||||
{
|
||||
std::cerr << "(EE) Directory " << cumulated_path << " has real path " << real_path << " which already belongs to another shared directory. Ignoring" << std::endl;
|
||||
std::cerr << "(WW) Directory " << cumulated_path << " has real path " << real_path << " which already belongs to another shared directory. Ignoring" << std::endl;
|
||||
return ;
|
||||
}
|
||||
existing_directories.insert(real_path) ;
|
||||
|
@ -482,8 +482,8 @@ bool RsDirUtil::checkCreateDirectory(const std::string& dir)
|
||||
|
||||
std::string RsDirUtil::removeSymLinks(const std::string& path)
|
||||
{
|
||||
#warning (Mr.Alice): I don't know how to do this on windows. See https://msdn.microsoft.com/en-us/library/windows/desktop/hh707084(v=vs.85).aspx
|
||||
#ifdef WINDOWS_SYS
|
||||
#if defined(WINDOWS_SYS) || defined(__APPLE__)
|
||||
#warning (Mr.Alice): I don't know how to do this on windows/MacOS. See https://msdn.microsoft.com/en-us/library/windows/desktop/hh707084(v=vs.85).aspx
|
||||
//if(!S_OK == PathCchCanonicalizeEx(tmp,...) ;
|
||||
return path ;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user