mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-08 10:35:26 -05:00
This includes a minor patch to encode.c to work around the "static init" check that actually doesn't do anything in its default state, but, due to compiler subtleties in handling duplicate object names, would not be able to link brotli.exe because it would refuse to expose all symbols for duplicate objects (a later one would just be ignored). Unsure how clang does this but it's not portable across compilers. (we need the brotli.exe tool for resource package compression)
20 lines
465 B
C
20 lines
465 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 "platform.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);
|
|
}
|