Fix compiling on Gentoo Linux due to use of non-public API.

This commit is contained in:
Brandon Wright 2012-07-19 22:21:31 -05:00 committed by Piotr Paweł Stefaniak
parent 3791810d2c
commit 94a649b4bb
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ extern "C" {
#define ZLIB_FILEFUNC_MODE_EXISTING (4) #define ZLIB_FILEFUNC_MODE_EXISTING (4)
#define ZLIB_FILEFUNC_MODE_CREATE (8) #define ZLIB_FILEFUNC_MODE_CREATE (8)
#ifndef OF
#define OF(x) x
#endif
#ifndef ZCALLBACK #ifndef ZCALLBACK
#if (defined(WIN32) || defined(_WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK) #if (defined(WIN32) || defined(_WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)