]> git.ipfire.org Git - thirdparty/zstd.git/commit
fix zlibWrapper for Visual Studio 1847/head
authorYann Collet <cyan@fb.com>
Thu, 24 Oct 2019 22:19:05 +0000 (15:19 -0700)
committerYann Collet <cyan@fb.com>
Thu, 24 Oct 2019 22:19:05 +0000 (15:19 -0700)
commit42a22af78b068bd934123ae7e1d6eee1544282f6
tree2e4e0384b2ba18b68f272b600f9a119d783927fd
parentf93668c9041ec84752321267f2d60c0887fa3fe9
fix zlibWrapper for Visual Studio

As per https://github.com/facebook/zstd/issues/1800#issuecomment-545945050,
Visual does not support `ssize_t` type,
which is an issue for `gzread.c`.

Added a work around, suggested by @bluenlive

Note : I have not been able to confirm the problem,
so this is a blind fix.
This seems safe outside of Visual, since it is gated by _MSC_VER macro.
zlibWrapper/gzread.c