summaryrefslogtreecommitdiff
blob: d7d3b21c833e976c0ef6f1810c90888018339dcf (plain)
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
--- a/misc/unzip.h
+++ b/misc/unzip.h
@@ -49,6 +49,10 @@
 #include "zlib.h"
 #endif
 
+#ifndef OF
+#define OF(x) x
+#endif
+
 #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
 /* like the STRICT of WIN32, we define a pointer that cannot be converted
     from (void*) without cast */
--- a/libdiscmage/unzip.h
+++ b/libdiscmage/unzip.h
@@ -48,6 +48,9 @@
 #ifndef _ZLIB_H
 #include "zlib.h"
 #endif
+#ifndef OF
+#define OF(x) x
+#endif
 
 #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
 /* like the STRICT of WIN32, we define a pointer that cannot be converted
--- a/libdiscmage/misc_z.c
+++ b/libdiscmage/misc_z.c
@@ -27,6 +27,7 @@
 #include <string.h>
 #include <errno.h>
 #include <sys/stat.h>
+#define Z_SOLO
 #include <zlib.h>
 #include "misc_z.h"
 #include "misc.h"
--- a/misc/archive.c
+++ b/misc/archive.c
@@ -27,6 +27,7 @@
 #include <string.h>
 #include <errno.h>
 #include <sys/stat.h>
+#define Z_SOLO
 #include <zlib.h>
 #ifdef  HAVE_BYTESWAP_H
 #include <byteswap.h>