Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/brotli/common/platform.c
21431 views
1
/* Copyright 2016 Google Inc. All Rights Reserved.
2
3
Distributed under MIT license.
4
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5
*/
6
7
#include "platform.h"
8
9
/* Default brotli_alloc_func */
10
void* BrotliDefaultAllocFunc(void* opaque, size_t size) {
11
BROTLI_UNUSED(opaque);
12
return malloc(size);
13
}
14
15
/* Default brotli_free_func */
16
void BrotliDefaultFreeFunc(void* opaque, void* address) {
17
BROTLI_UNUSED(opaque);
18
free(address);
19
}
20
21