summaryrefslogtreecommitdiff
blob: a618c3bce75a41d93e0f8f00803ed1ab485ce616 (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
Fix undefined macro issue when compiling with zlib.
https://bugs.gentoo.org/753950

From upstream:
https://sourceforge.net/p/ucon64/svn/2817/
https://sourceforge.net/p/ucon64/svn/2819/
--- a/libdiscmage/ioapi.h
+++ b/libdiscmage/ioapi.h
@@ -35,4 +35,7 @@
 extern "C" {
 #endif
+#ifndef OF
+#define OF(x) x
+#endif
 
 typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode));
--- a/misc/ioapi.h
+++ b/misc/ioapi.h
@@ -35,4 +35,7 @@
 extern "C" {
 #endif
+#ifndef OF
+#define OF(x) x
+#endif
 
 typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const char* filename, int mode));