zdoom-macos-deps/test/libbrotlidec.cpp
alexey.lysiuk 5853280727 restore brotli 1.0.9 files
revert commit 6e0fe92e94
2023-08-23 17:53:54 +03:00

11 lines
334 B
C++

#include <brotli/decode.h>
int main()
{
BrotliDecoderState* decoder = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr);
AEDI_EXPECT(decoder != nullptr);
AEDI_EXPECT(BrotliDecoderSetParameter(decoder, BROTLI_DECODER_PARAM_LARGE_WINDOW, 1) == BROTLI_TRUE);
BrotliDecoderDestroyInstance(decoder);
return 0;
}