From 94a649b4bbdfa354a0b273e20e65857466c2f49c Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Thu, 19 Jul 2012 22:21:31 -0500 Subject: [PATCH] Fix compiling on Gentoo Linux due to use of non-public API. --- unzip/ioapi.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unzip/ioapi.h b/unzip/ioapi.h index a2d2e6e6..abb24ba3 100644 --- a/unzip/ioapi.h +++ b/unzip/ioapi.h @@ -122,6 +122,9 @@ extern "C" { #define ZLIB_FILEFUNC_MODE_EXISTING (4) #define ZLIB_FILEFUNC_MODE_CREATE (8) +#ifndef OF +#define OF(x) x +#endif #ifndef ZCALLBACK #if (defined(WIN32) || defined(_WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)