X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41faf8072770ee8e200a8752ede766d6a4fbb158..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/zlib/gzio.c?ds=sidebyside 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 */