node/deps/brotli/c/common/platform.c
Anna Henningsen 94fcac7876 deps: update brotli to v1.0.9
Refs: https://github.com/google/brotli/releases/tag/v1.0.8
Refs: https://github.com/google/brotli/releases/tag/v1.0.9

PR-URL: https://github.com/nodejs/node/pull/34937
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2020-08-29 01:56:35 +00:00

23 lines
514 B
C

/* 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 <stdlib.h>
#include "./platform.h"
#include <brotli/types.h>
/* 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);
}