From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- modules/brotli/common/platform.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/brotli/common/platform.c (limited to 'modules/brotli/common/platform.c') diff --git a/modules/brotli/common/platform.c b/modules/brotli/common/platform.c new file mode 100644 index 0000000000..aef39e93c4 --- /dev/null +++ b/modules/brotli/common/platform.c @@ -0,0 +1,22 @@ +/* Copyright 2016 Google Inc. All Rights Reserved. + + Distributed under MIT license. + See file LICENSE for detail or copy at https://opensource.org/licenses/MIT +*/ + +#include + +#include "./platform.h" +#include + +/* Default brotli_alloc_func */ +void* BrotliDefaultAllocFunc(void* opaque, size_t size) { + BROTLI_UNUSED(opaque); + return malloc(size); +} + +/* Default brotli_free_func */ +void BrotliDefaultFreeFunc(void* opaque, void* address) { + BROTLI_UNUSED(opaque); + free(address); +} -- cgit v1.2.3