gdraheim / zziplib

The ZZIPlib provides read access on ZIP-archives and unpacked data. It features an additional simplified API following the standard Posix API for file access
Other
62 stars 50 forks source link

Fix _zzip_strndup if strndup is not available #51

Closed keneanung closed 6 years ago

keneanung commented 6 years ago

If strn_dup is not available on the compiling system, a custom version is compiled into zziplib. This version uses malloc, but there is no include of stdlib.h since e78b8d3077ce16e5433020f6098b5120c27ae3e9 moved the include into the ifdef of strnlen.

This enables compiling under MinGW for instance.

gdraheim commented 6 years ago

Thank you!