summaryrefslogtreecommitdiff
path: root/gzguts.h
diff options
context:
space:
mode:
Diffstat (limited to 'gzguts.h')
-rw-r--r--gzguts.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/gzguts.h b/gzguts.h
index 1602960..ad3690e 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -38,10 +38,6 @@
# include <stddef.h>
#endif
-#if !defined(_MSC_VER) || defined(__MINGW__)
-# include <unistd.h> /* for lseek(), read(), close(), write(), unlink() */
-#endif
-
#if defined(_WIN32)
# include <io.h>
# define WIDECHAR
@@ -144,11 +140,6 @@ void Z_INTERNAL gz_error(gz_state *, int, const char *);
/* GT_OFF(x), where x is an unsigned value, is true if x > maximum z_off64_t
value -- needed when comparing unsigned to z_off64_t, which is signed
(possible z_off64_t types off_t, off64_t, and long are all signed) */
-#ifdef INT_MAX
-# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
-#else
-unsigned Z_INTERNAL gz_intmax(void);
-# define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > gz_intmax())
-#endif
+#define GT_OFF(x) (sizeof(int) == sizeof(z_off64_t) && (x) > INT_MAX)
#endif /* GZGUTS_H_ */