From f5c8f7b5e504f37710a04beb58b0b67e5f0e7452 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 27 Sep 2015 01:02:12 +0200 Subject: [PATCH] DefaultIOSystem: close cygwin issue assimp/assimp/issues/660. --- code/DefaultIOSystem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/DefaultIOSystem.cpp b/code/DefaultIOSystem.cpp index 1251b6c2c..1e7aaf8b9 100644 --- a/code/DefaultIOSystem.cpp +++ b/code/DefaultIOSystem.cpp @@ -135,11 +135,11 @@ inline void MakeAbsolutePath (const char* in, char* _out) { ai_assert(in && _out); char* ret; -#if defined _WIN32 && defined _MSC_VER - ret = ::_fullpath( _out, in, PATHLIMIT ); +if defined( _MSC_VER ) || defined( __MINGW32__ ) + ret = ::_fullpath( _out, in, PATHLIMIT ); #else - // use realpath - ret = realpath(in, _out); + // use realpath + ret = realpath(in, _out); #endif if(!ret) { // preserve the input path, maybe someone else is able to fix