mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
fix lzma build
This commit is contained in:
parent
debaa7b315
commit
56cd1d51e0
@ -11,10 +11,10 @@
|
||||
#ifndef LZMA_UTIL_H
|
||||
#define LZMA_UTIL_H
|
||||
|
||||
#include "avian/lzma.h"
|
||||
#include "C/Types.h"
|
||||
#include <avian/lzma.h>
|
||||
#include <C/Types.h>
|
||||
#include <avian/system/system.h>
|
||||
#include "avian/util/allocator.h"
|
||||
#include <avian/util/allocator.h>
|
||||
|
||||
namespace vm {
|
||||
|
||||
@ -22,13 +22,13 @@ const unsigned Padding = 16;
|
||||
|
||||
class LzmaAllocator {
|
||||
public:
|
||||
LzmaAllocator(Allocator* a): a(a) {
|
||||
LzmaAllocator(avian::util::Allocator* a): a(a) {
|
||||
allocator.Alloc = allocate;
|
||||
allocator.Free = free;
|
||||
}
|
||||
|
||||
ISzAlloc allocator;
|
||||
Allocator* a;
|
||||
avian::util::Allocator* a;
|
||||
|
||||
static void* allocate(void* allocator, size_t size) {
|
||||
uint8_t* p = static_cast<uint8_t*>
|
||||
|
@ -29,7 +29,7 @@ read4(const uint8_t* in)
|
||||
namespace vm {
|
||||
|
||||
uint8_t*
|
||||
decodeLZMA(System* s, Allocator* a, uint8_t* in, unsigned inSize,
|
||||
decodeLZMA(System* s, avian::util::Allocator* a, uint8_t* in, unsigned inSize,
|
||||
unsigned* outSize)
|
||||
{
|
||||
const unsigned PropHeaderSize = 5;
|
||||
|
Loading…
Reference in New Issue
Block a user