blob: c2a4575585fde7a88ce634fe514e0ebc5e1a09ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-ad,v 1.5 2011/01/02 23:53:13 schnoebe Exp $
Some old versions of zlib defined OF; not needed, but provide compat for it.
--- src/libpsi/tools/zip/minizip/unzip.h.orig 2007-10-14 09:00:55.000000000 -0500
+++ src/libpsi/tools/zip/minizip/unzip.h
@@ -49,6 +49,14 @@ extern "C" {
#include "zlib.h"
#endif
+#ifndef OF
+# ifdef STDC
+# define OF(x) x
+# else
+# define OF(x)
+# endif
+#endif
+
#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
/* like the STRICT of WIN32, we define a pointer that cannot be converted
from (void*) without cast */
|