X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d699f48ba33c96c24f7ab3764ad98ded0633c1c5..243d4b360385d3364e96d5600f693139e359fb3b:/src/common/unzip.c diff --git a/src/common/unzip.c b/src/common/unzip.c index dd8494835d..7b1369e5aa 100644 --- a/src/common/unzip.c +++ b/src/common/unzip.c @@ -14,14 +14,26 @@ $Id$ -#include "wx/defs.h" +#include "wx/setup.h" #if wxUSE_ZLIB && wxUSE_ZIPSTREAM #include #include #include -#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" +#elif defined(__WXMAC__) && defined(__UNIX__) + #include +#else + #include "zlib.h" +#endif + /* Not the right solution (paths in makefiles) but... */ #ifdef __BORLANDC__