fix lzma build

This commit is contained in:
Joshua Warner 2014-03-25 15:10:24 -06:00
parent debaa7b315
commit 56cd1d51e0
2 changed files with 6 additions and 6 deletions

View File

@ -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*>

View File

@ -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;