]> git.ipfire.org Git - thirdparty/zstd.git/commit
zlibWrapper: Update for zlib 1.2.12 (#3217)
authororbea <orbea@riseup.net>
Fri, 29 Jul 2022 19:22:10 +0000 (12:22 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Jul 2022 19:22:10 +0000 (12:22 -0700)
commit1e09cffd9b15b39379810a39ffae182b4a7e7b78
tree9774f0a66d5cfa69c9ff40e4352eb876ed29e2dd
parentb1bbb0eb4c91d8e5d170b0cf732daacd0252e459
zlibWrapper: Update for zlib 1.2.12 (#3217)

In zlib 1.2.12 the OF macro was changed to _Z_OF breaking any
project that used zlibWrapper. To fix this the OF has been
changed to _Z_OF everywhere and _Z_OF is defined as OF in the
case it is not yet defined for zlib 1.2.11 and older.

Fixes: https://github.com/facebook/zstd/issues/3216
zlibWrapper/examples/example.c
zlibWrapper/examples/example_original.c
zlibWrapper/examples/minigzip.c
zlibWrapper/gzcompatibility.h
zlibWrapper/gzguts.h
zlibWrapper/gzlib.c
zlibWrapper/gzread.c
zlibWrapper/gzwrite.c
zlibWrapper/zstd_zlibwrapper.c
zlibWrapper/zstd_zlibwrapper.h