Skip to content

Commit

Permalink
already support 64 bits offset by define _FILE_OFFSET_BITS=64 (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceJiang authored and drelaptop committed Jan 9, 2019
1 parent 4715b2d commit 4ded6d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unzip/ioapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static voidpf ZCALLBACK fopen64_file_func (voidpf opaque, const void* filename,

if ((filename!=NULL) && (mode_fopen != NULL))
{
file = fopen64((const char*)filename, mode_fopen);
file = fopen((const char*)filename, mode_fopen);
}

return file;
Expand Down Expand Up @@ -143,7 +143,7 @@ static long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
static ZPOS64_T ZCALLBACK ftell64_file_func (voidpf opaque, voidpf stream)
{
ZPOS64_T ret;
ret = ftello64((FILE *)stream);
ret = ftello((FILE *)stream);
return ret;
}

Expand Down Expand Up @@ -186,7 +186,7 @@ static long ZCALLBACK fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T
break;
default: return -1;
}
if(fseeko64((FILE *)stream, offset, fseek_origin) != 0)
if(fseeko((FILE *)stream, offset, fseek_origin) != 0)
return -1;
return 0;
}
Expand Down

0 comments on commit 4ded6d5

Please sign in to comment.