diff options
author | Moonchild <moonchild@palemoon.org> | 2020-11-13 15:59:29 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-11-18 10:58:22 +0000 |
commit | b645d59b1e170af1cb0963935bd8c915e56c431c (patch) | |
tree | 49fdc8001d5758558ada7a711f31e08095388294 /modules/brotli/common/dictionary.c | |
parent | 71e0814af25e8619782294e65aa42aa1044dabdc (diff) | |
download | UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar.gz UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar.lz UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.tar.xz UXP-b645d59b1e170af1cb0963935bd8c915e56c431c.zip |
Issue #1683 - Update Brotli lib to 1.0.9
Diffstat (limited to 'modules/brotli/common/dictionary.c')
-rw-r--r-- | modules/brotli/common/dictionary.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/brotli/common/dictionary.c b/modules/brotli/common/dictionary.c index 64822a381..f9e30417c 100644 --- a/modules/brotli/common/dictionary.c +++ b/modules/brotli/common/dictionary.c @@ -5,12 +5,13 @@ */ #include "./dictionary.h" +#include "./platform.h" #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif -#ifndef BROTLI_EXTERNAL_DICTIONARY_DATA +#if !defined(BROTLI_EXTERNAL_DICTIONARY_DATA) static const uint8_t kBrotliDictionaryData[] = { 116,105,109,101,100,111,119,110,108,105,102,101,108,101,102,116,98,97,99,107,99, @@ -5862,7 +5863,11 @@ static const uint8_t kBrotliDictionaryData[] = ; #endif /* !BROTLI_EXTERNAL_DICTIONARY_DATA */ +#if !defined(BROTLI_EXTERNAL_DICTIONARY_DATA) +static const BrotliDictionary kBrotliDictionary = { +#else static BrotliDictionary kBrotliDictionary = { +#endif /* size_bits_by_length */ { 0, 0, 0, 0, 10, 10, 11, 11, @@ -5895,9 +5900,13 @@ const BrotliDictionary* BrotliGetDictionary() { } void BrotliSetDictionaryData(const uint8_t* data) { +#if defined(BROTLI_EXTERNAL_DICTIONARY_DATA) if (!!data && !kBrotliDictionary.data) { kBrotliDictionary.data = data; } +#else + BROTLI_UNUSED(data); // Appease -Werror=unused-parameter +#endif } #if defined(__cplusplus) || defined(c_plusplus) |