Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-03-05 11:02:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-05 11:02:59 +0400
commit47c47ef7a2791840b4c6f8c3b7c76092009923ef (patch)
tree8ff2b00de3c5a07beb35db43e8f254776469671d /source/blender/blenlib/intern/storage.c
parentfcc807f2948b6a88af573f63b9bb5aaeb14f8ca2 (diff)
fix for building with mingw in since recent changes.
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r--source/blender/blenlib/intern/storage.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index cee92888cce..12d9d4a174f 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -71,6 +71,7 @@
#ifdef WIN32
# include <io.h>
# include <direct.h>
+# include <limits.h> /* PATH_MAX */
# include "BLI_winstuff.h"
# include "utfconv.h"
#else
@@ -278,10 +279,10 @@ static void bli_builddir(const char *dirname, const char *relname,
#ifdef WIN32
{
wchar_t *name_16 = alloc_utf16_from_8(fullname, 0);
-#if (defined(WIN32) || defined(WIN64)) && (_MSC_VER >= 1500)
- _wstat64(name_16, &entry->s);
+#if defined(_MSC_VER) && (_MSC_VER >= 1500)
+ _wstat64(name_16, &filec->s);
#elif defined(__MINGW32__)
- _stati64(fullname, &entry->s);
+ _stati64(fullname, &file->s);
#endif
free(name_16);
}