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
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
#include "gzguts.h"
|
||||
|
||||
/* Local functions */
|
||||
local int gz_init OF((gz_statep));
|
||||
local int gz_comp OF((gz_statep, int));
|
||||
local int gz_zero OF((gz_statep, z_off64_t));
|
||||
local z_size_t gz_write OF((gz_statep, voidpc, z_size_t));
|
||||
local int gz_init _Z_OF((gz_statep));
|
||||
local int gz_comp _Z_OF((gz_statep, int));
|
||||
local int gz_zero _Z_OF((gz_statep, z_off64_t));
|
||||
local z_size_t gz_write _Z_OF((gz_statep, voidpc, z_size_t));
|
||||
|
||||
/* Initialize state for writing a gzip file. Mark initialization by setting
|
||||
state.state->size to non-zero. Return -1 on a memory allocation failure, or 0 on
|
||||
|
||||
Reference in New Issue
Block a user