X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/076bae67da7d0d6909f4a4f364b8fe04fdf59b9d..bc5a847c1b4d89a9e26a3ac7b9e75f41b7530316:/src/common/unzip.h?ds=sidebyside diff --git a/src/common/unzip.h b/src/common/unzip.h index cb37bef325..78dee0ee4d 100644 --- a/src/common/unzip.h +++ b/src/common/unzip.h @@ -53,7 +53,16 @@ extern "C" { #endif #ifndef _ZLIB_H -#include "zlib.h" +//#include "zlib.h" +// normally, the compiler options should contain -I../zlib, but it is +// apparently not the case for all MSW makefiles and so, unless we use +// configure (which defines __WX_SETUP_H__) or it is explicitly overridden by +// the user (who can define wxUSE_ZLIB_H_IN_PATH), we hardcode the path here +#if defined(__WXMSW__) && !defined(__WX_SETUP_H__) && !defined(wxUSE_ZLIB_H_IN_PATH) + #include "../zlib/zlib.h" +#else + #include "zlib.h" +#endif #endif #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) @@ -275,7 +284,7 @@ extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file, the error code */ -#if defined(__VISAGECPP__) +#if defined(__VISAGECPP__) || defined(__BORLANDC__) /*Visualage complains of no prototypes*/ int unzlocal_getByte(FILE* , int*); int strcmpcasenosensitive_internal (const char*, const char*);