not Types.h.
* grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
environment.
(LzmaDec_InitDicAndState): Make static.
+2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * 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.
+
2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
#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)
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;
#ifndef __LZMADEC_H
#define __LZMADEC_H
-#include "Types.h"
+#include "LzmaTypes.h"
/* #define _LZMA_PROB32 */
/* _LZMA_PROB32 can increase the speed on some CPUs,