2.5 file browser

* enable large file size for WIN64 too.
This commit is contained in:
Andrea Weikert
2009-07-26 12:49:43 +00:00
parent 569bb8f47d
commit 7084447c73
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ struct direntry{
char *string;
mode_t type;
char *relname;
#if defined(WIN32) && !defined(WIN64) && (_MSC_VER>=1500)
#if (defined(WIN32) || defined(WIN64)) && (_MSC_VER>=1500)
struct _stat64 s;
#else
struct stat s;

View File

@@ -265,9 +265,9 @@ void BLI_builddir(char *dirname, char *relname)
while(dlink){
memset(&files[actnum], 0 , sizeof(struct direntry));
files[actnum].relname = dlink->name;
// use 64 bit file size, only needed for WIN32, WIN64 should work fine with stat.
// use 64 bit file size, only needed for WIN32 and WIN64.
// Excluding other than current MSVC compiler until able to test.
#if defined(WIN32) && !defined(WIN64) && (_MSC_VER>=1500)
#if (defined(WIN32) || defined(WIN64)) && (_MSC_VER>=1500)
_stat64(dlink->name,&files[actnum].s);
#else
stat(dlink->name,&files[actnum].s);