Skip to content

Remove incompatible API 'unzOpenBuffer' width minizip-1.2.0 #381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions unzip/unzip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,6 @@ extern unzFile ZEXPORT unzOpen64(const void *path)
return unzOpenInternal(path, NULL);
}

extern unzFile ZEXPORT unzOpenBuffer(const void* buffer, uLong size)
{
zlib_filefunc_def memory_file = { 0 };
ourmemory_s oms = { (char*)const_cast<void*>(buffer), static_cast<uint32_t>(size), 0, 0, 0};
fill_memory_filefunc(&memory_file, &oms);
return unzOpen2(nullptr, &memory_file);
}

extern int ZEXPORT unzClose(unzFile file)
{
unz64_internal *s;
Expand Down
1 change: 0 additions & 1 deletion unzip/unzip.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ typedef struct unz_file_info_s

extern unzFile ZEXPORT unzOpen(const char *path);
extern unzFile ZEXPORT unzOpen64(const void *path);
extern unzFile ZEXPORT unzOpenBuffer(const void* buffer, uLong size);
/* Open a Zip file.

path should contain the full path (by example, on a Windows XP computer
Expand Down