X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41faf8072770ee8e200a8752ede766d6a4fbb158..945a5ae7496862e751be4fec9e592a48cd646a4c:/src/zlib/gzio.c?ds=sidebyside diff --git a/src/zlib/gzio.c b/src/zlib/gzio.c index 7e90f4928f..90483f8864 100644 --- a/src/zlib/gzio.c +++ b/src/zlib/gzio.c @@ -5,7 +5,6 @@ * Compile this file with -DNO_GZCOMPRESS to avoid the compression code. */ -/* @(#) $Id$ */ #include @@ -43,6 +42,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 */