2.5 file browser
authorAndrea Weikert <elubie@gmx.net>
Sun, 26 Jul 2009 12:49:43 +0000 (12:49 +0000)
committerAndrea Weikert <elubie@gmx.net>
Sun, 26 Jul 2009 12:49:43 +0000 (12:49 +0000)
* enable large file size for WIN64 too.

source/blender/blenlib/BLI_storage_types.h
source/blender/blenlib/intern/storage.c

index 9430ac8c5ff8d2e03bbd1b5a7c544199a0f5205e..cdc85d1be39486a83b42c15c839d606045a03fca 100644 (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;
index 997d9b9c3f156b2986c420cc7b7b8db172c8aa46..817209eaed445925e96437536cc07e1efa6e407a 100644 (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);