With MinGW the `s:\<(O[FN])\>:_Z_\1:g` substitution was applied to the minizip headers, but not to the zlib ones, causing: "error: expected initializer before 'OF'" PS: iowin32.h is missing too, but that's a zlib issue (already send them a patch).
Created attachment 306873 [details, diff] ebuild patch
should be all set now in the tree; thanks for the report! Commit message: Fix by jk3064 for mingw headers http://sources.gentoo.org/sys-libs/zlib/zlib-1.2.6.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/sys-libs/zlib/zlib-1.2.7.ebuild?r1=1.1&r2=1.2