Skip to content

Commit

Permalink
Remove incompatible API 'unzOpenBuffer' width minizip-1.2.0 (#381)
Browse files Browse the repository at this point in the history
* Remove

* Update unzip.cpp
  • Loading branch information
halx99 authored and minggo committed Oct 11, 2019
1 parent 6f26d02 commit edaecd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
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

0 comments on commit edaecd1

Please sign in to comment.