1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
From 02c35c25e565a090ec6b49fbc6210f6593519b44 Mon Sep 17 00:00:00 2001
From: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com>
Date: Fri, 25 Oct 2019 10:03:39 +0200
Subject: [PATCH] Fix missing `lizard_decompress.h` after `make install`.
---
lib/Makefile | 2 ++
lib/lizard_common.h | 7 +++++++
lib/lizard_decompress.h | 9 +--------
3 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
index 64c07dd..9484056 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -143,6 +143,7 @@ endif
@ln -sf liblizard.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/liblizard.$(SHARED_EXT)
@echo Installing includes
@$(INSTALL_DATA) lizard_compress.h $(DESTDIR)$(INCLUDEDIR)/lizard_compress.h
+ @$(INSTALL_DATA) lizard_decompress.h $(DESTDIR)$(INCLUDEDIR)/lizard_decompress.h
@$(INSTALL_DATA) lizard_common.h $(DESTDIR)$(INCLUDEDIR)/lizard_common.h
@$(INSTALL_DATA) lizard_frame.h $(DESTDIR)$(INCLUDEDIR)/lizard_frame.h
@echo lizard static and shared libraries installed
@@ -154,6 +155,7 @@ uninstall:
@$(RM) $(DESTDIR)$(LIBDIR)/liblizard.$(SHARED_EXT_VER)
@$(RM) $(DESTDIR)$(LIBDIR)/liblizard.a
@$(RM) $(DESTDIR)$(INCLUDEDIR)/lizard_compress.h
+ @$(RM) $(DESTDIR)$(INCLUDEDIR)/lizard_decompress.h
@$(RM) $(DESTDIR)$(INCLUDEDIR)/lizard_common.h
@$(RM) $(DESTDIR)$(INCLUDEDIR)/lizard_frame.h
@echo lizard libraries successfully uninstalled
diff --git a/lib/lizard_common.h b/lib/lizard_common.h
index 1677abb..45730cf 100644
--- a/lib/lizard_common.h
+++ b/lib/lizard_common.h
@@ -192,6 +192,13 @@ struct Lizard_stream_s
const BYTE* destBase;
};
+struct Lizard_streamDecode_s {
+ const BYTE* externalDict;
+ size_t extDictSize;
+ const BYTE* prefixEnd;
+ size_t prefixSize;
+};
+
struct Lizard_dstream_s
{
const BYTE* offset16Ptr;
diff --git a/lib/lizard_decompress.h b/lib/lizard_decompress.h
index 5453b4d..ad9fc8e 100644
--- a/lib/lizard_decompress.h
+++ b/lib/lizard_decompress.h
@@ -39,8 +39,6 @@
extern "C" {
#endif
-#include "entropy/mem.h" /* U32 */
-
/*^***************************************************************
* Export parameters
@@ -95,12 +93,7 @@ LIZARDDLIB_API int Lizard_decompress_safe_partial (const char* source, char* des
/*-**********************************************
* Streaming Decompression Functions
************************************************/
-typedef struct {
- const BYTE* externalDict;
- size_t extDictSize;
- const BYTE* prefixEnd;
- size_t prefixSize;
-} Lizard_streamDecode_t;
+typedef struct Lizard_streamDecode_s Lizard_streamDecode_t;
/*
* Lizard_streamDecode_t
|