Skip to content

Commit 4ded6d5

Browse files
PatriceJiangdrelaptop
authored andcommitted
already support 64 bits offset by define _FILE_OFFSET_BITS=64 (#341)
1 parent 4715b2d commit 4ded6d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unzip/ioapi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static voidpf ZCALLBACK fopen64_file_func (voidpf opaque, const void* filename,
111111

112112
if ((filename!=NULL) && (mode_fopen != NULL))
113113
{
114-
file = fopen64((const char*)filename, mode_fopen);
114+
file = fopen((const char*)filename, mode_fopen);
115115
}
116116

117117
return file;
@@ -143,7 +143,7 @@ static long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
143143
static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream)
144144
{
145145
ZPOS64_T ret;
146-
ret = ftello64((FILE *)stream);
146+
ret = ftello((FILE *)stream);
147147
return ret;
148148
}
149149

@@ -186,7 +186,7 @@ static long ZCALLBACK fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T
186186
break;
187187
default: return -1;
188188
}
189-
if(fseeko64((FILE *)stream, offset, fseek_origin) != 0)
189+
if(fseeko((FILE *)stream, offset, fseek_origin) != 0)
190190
return -1;
191191
return 0;
192192
}

0 commit comments

Comments
 (0)