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>2019-02-22 08:56:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-22 08:56:22 +0300
commit7bfb6c242bbfec2e1fca131c8497e57b16bdc6e2 (patch)
treef069c228ed4790a33a8c5f8e6e0e81de8f7e789c /source/blender/blenloader/intern/readfile.h
parent358e07f447e9ed7f87f419e8d027e73c97c00077 (diff)
readfile: support blend files over 2gb
Should work for 4gb+ files too however I wasn't able to test that.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.h')
-rw-r--r--source/blender/blenloader/intern/readfile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h
index 167d5511a0c..4fe65934107 100644
--- a/source/blender/blenloader/intern/readfile.h
+++ b/source/blender/blenloader/intern/readfile.h
@@ -54,9 +54,9 @@ typedef struct FileData {
enum eFileDataFlag flags;
bool is_eof;
int buffersize;
- int file_offset;
+ off_t file_offset;
int (*read)(struct FileData *filedata, void *buffer, unsigned int size);
- int (*seek)(struct FileData *filedata, int offset, int whence);
+ off_t (*seek)(struct FileData *filedata, off_t offset, int whence);
/** Variables needed for reading from memory / stream. */
const char *buffer;