* include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
not Types.h. * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB environment. (LzmaDec_InitDicAndState): Make static.
This commit is contained in:
parent
881c6a1049
commit
3617c59bab
3 changed files with 13 additions and 3 deletions
|
@ -26,7 +26,9 @@
|
|||
|
||||
#include <grub/lib/LzmaDec.h>
|
||||
|
||||
#include <string.h>
|
||||
#pragma GCC diagnostic ignored "-Wshadow"
|
||||
#include <grub/misc.h>
|
||||
#define memcpy grub_memcpy
|
||||
|
||||
#define kNumTopBits 24
|
||||
#define kTopValue ((UInt32)1 << kNumTopBits)
|
||||
|
@ -718,7 +720,7 @@ static void LzmaDec_InitRc(CLzmaDec *p, const Byte *data)
|
|||
p->needFlush = 0;
|
||||
}
|
||||
|
||||
void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState)
|
||||
static void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState)
|
||||
{
|
||||
p->needFlush = 1;
|
||||
p->remainLen = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue