X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41faf8072770ee8e200a8752ede766d6a4fbb158..9d5cfd0e64a2c09d957517405758de680806e674:/src/zlib/gzio.c 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 */