fixed some linux compilation issues

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@257 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
alil
2008-11-30 20:32:53 +00:00
parent 80da4a4093
commit e9fc71cc60
3 changed files with 9 additions and 4 deletions

View File

@@ -120,7 +120,11 @@ bool IOSystem::ComparePaths (const std::string& one,
// Convert a relative path into an absolute path
inline void MakeAbsolutePath (const std::string& in, char* _out)
{
::_fullpath(_out, in.c_str(),PATHLIMIT);
#ifdef WIN32
::_fullpath(_out, in.c_str(),PATHLIMIT);
#else
realpath(in.c_str(), _out); //TODO not a save implementation realpath assumes that _out has the size PATH_MAX defined in limits.h; an error handling should be added to both versions
#endif
}
// ------------------------------------------------------------------------------------------------