From: Vadim Zeitlin Date: Sun, 29 Jul 2007 14:21:30 +0000 (+0000) Subject: compilation fix for WinCE X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b0744f8068a9e8032025cd74efa86876087631d4 compilation fix for WinCE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/zlib/gzio.c b/src/zlib/gzio.c index 7e90f4928f..d6b55d5b6c 100644 --- a/src/zlib/gzio.c +++ b/src/zlib/gzio.c @@ -43,6 +43,12 @@ extern void free OF((voidpf ptr)); #define ALLOC(size) malloc(size) #define TRYFREE(p) {if (p) free(p);} +/* there is no errno under Windows CE, provide a dummy one to avoid modifying + too much code in this file */ +#ifdef _WIN32_WCE +static int errno; +#endif + static int const gz_magic[2] = {0x1f, 0x8b}; /* gzip magic header */ /* gzip flag byte */