From d211ecdf026c0115313a02430bd6af6f5fb21f73 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 23 Feb 2013 20:27:13 -0800 Subject: [PATCH] Use underscored I/O function names for WINAPI_FAMILY. Suggested by E. Timothy Uy. --- gzguts.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gzguts.h b/gzguts.h index 68d135b4..51216160 100644 --- a/gzguts.h +++ b/gzguts.h @@ -35,6 +35,13 @@ # include #endif +#ifdef WINAPI_FAMILY +# define open _open +# define read _read +# define write _write +# define close _close +#endif + #ifdef NO_DEFLATE /* for compatibility with old definition */ # define NO_GZCOMPRESS #endif