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