Explorar o código

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

Kim Kulling %!s(int64=10) %!d(string=hai) anos
pai
achega
f5c8f7b5e5
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      code/DefaultIOSystem.cpp

+ 4 - 4
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