diff options
author | Andrea Weikert <elubie@gmx.net> | 2009-07-26 16:40:44 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2009-07-26 16:40:44 +0400 |
commit | 569bb8f47d62f40004f87a4862d87b4b1937fecb (patch) | |
tree | 711a09a5f18a2503310e12f395f92a254a722d9b /source/blender/blenlib/BLI_storage_types.h | |
parent | 4e024a1e6e41640d2f70624bb15778dc6a6c6695 (diff) |
2.5 filebrowser
Bugfixes:
* crash when loading file that has filebrowser open
* file size over 2GB/4GB? shows negative number
Other:
* tried to improve drawing speed a bit by only drawing the files actually shown and improving refresh behaviour a bit.
Note: Solution I found so far is to use the non-standard _stat64, as far as I could see, WIN64 should work without that patch (Genscher, please check and if needed you can enable this too by removing the !defined(WIN64) )
This probably needs to be fixed in at least one other place (BLI_filesize), will look into this once this fix proves stable enough)
Diffstat (limited to 'source/blender/blenlib/BLI_storage_types.h')
-rw-r--r-- | source/blender/blenlib/BLI_storage_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_storage_types.h b/source/blender/blenlib/BLI_storage_types.h index 385aa39e6cb..9430ac8c5ff 100644 --- a/source/blender/blenlib/BLI_storage_types.h +++ b/source/blender/blenlib/BLI_storage_types.h @@ -55,7 +55,11 @@ struct direntry{ char *string; mode_t type; char *relname; +#if defined(WIN32) && !defined(WIN64) && (_MSC_VER>=1500) + struct _stat64 s; +#else struct stat s; +#endif unsigned int flags; char size[16]; char mode1[4]; |