diff options
author | XadillaX <i@2333.moe> | 2021-06-22 18:08:41 +0800 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2021-09-04 11:30:38 +0200 |
commit | c8c290ae8fc98cd1fd5066c5ec07398396e9798c (patch) | |
tree | 8578e34410b163cf383d8d190b56a556473bdbf0 /src | |
parent | 2629979fd0665b021a8eca5696d3b458a3f02e81 (diff) | |
download | node-new-c8c290ae8fc98cd1fd5066c5ec07398396e9798c.tar.gz |
src,zlib: tighten up Z_*_WINDOWBITS macros
PR-URL: https://github.com/nodejs/node/pull/39115
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_internals.h | 5 | ||||
-rw-r--r-- | src/node_zlib.cc | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index f7a1e2d8d6..7d31640bed 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -39,11 +39,6 @@ #include <string> #include <vector> -// Custom constants used by both node_constants.cc and node_zlib.cc -#define Z_MIN_WINDOWBITS 8 -#define Z_MAX_WINDOWBITS 15 -#define Z_DEFAULT_WINDOWBITS 15 - struct sockaddr; namespace node { diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 2a2466052c..b8733229b0 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -71,6 +71,9 @@ namespace { #define Z_MIN_LEVEL -1 #define Z_MAX_LEVEL 9 #define Z_DEFAULT_LEVEL Z_DEFAULT_COMPRESSION +#define Z_MIN_WINDOWBITS 8 +#define Z_MAX_WINDOWBITS 15 +#define Z_DEFAULT_WINDOWBITS 15 #define ZLIB_ERROR_CODES(V) \ V(Z_OK) \ |