diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-07-19 13:02:27 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-07-19 13:02:27 +0400 |
commit | 266438b5e0224de4653ba2a795a069781e926007 (patch) | |
tree | a5554e87b433870e4a5e68001c4b175865d1a2a3 /source/blender/blenlib/intern/storage.c | |
parent | c28c33d19d544fdc69e82e5b6d941431516c588c (diff) |
- Use correct paths for mstoolkit and crossmingw tools in sconscript
- Use _stat64i32 instead of _stat in BLI_exist
Needed for correct compilation by mingw, no sense for msvc
(_stat is equivalent to _stat64i32 in Visual C++ 2005, and later i suppose)
- Added library msvcr90 for mingw to solve linking error to _stat64i32
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r-- | source/blender/blenlib/intern/storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index e8eb2070929..5bf6acf3847 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -447,7 +447,7 @@ int BLI_exist(char *name) BLI_strncpy(tmp, name, FILE_MAXDIR+FILE_MAXFILE); len = strlen(tmp); if (len > 3 && ( tmp[len-1]=='\\' || tmp[len-1]=='/') ) tmp[len-1] = '\0'; - res = _stat(tmp, &st); + res = _stat64i32(tmp, &st); if (res == -1) return(0); #else struct stat st; |