DefaultIOSystem: close cygwin issue assimp/assimp/issues/660.

pull/666/head
Kim Kulling 2015-09-27 01:02:12 +02:00
parent d06945f17e
commit f5c8f7b5e5
1 changed files with 4 additions and 4 deletions

View File

@ -135,11 +135,11 @@ inline void MakeAbsolutePath (const char* in, char* _out)
{ {
ai_assert(in && _out); ai_assert(in && _out);
char* ret; char* ret;
#if defined _WIN32 && defined _MSC_VER if defined( _MSC_VER ) || defined( __MINGW32__ )
ret = ::_fullpath( _out, in, PATHLIMIT ); ret = ::_fullpath( _out, in, PATHLIMIT );
#else #else
// use realpath // use realpath
ret = realpath(in, _out); ret = realpath(in, _out);
#endif #endif
if(!ret) { if(!ret) {
// preserve the input path, maybe someone else is able to fix // preserve the input path, maybe someone else is able to fix