]> git.lizzy.rs Git - zlib.git/commitdiff
Use underscored I/O function names for WINAPI_FAMILY.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 24 Feb 2013 04:27:13 +0000 (20:27 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 24 Feb 2013 04:27:13 +0000 (20:27 -0800)
Suggested by E. Timothy Uy.

gzguts.h

index 68d135b47e1bf4d2bdd986a450737f3326c4134a..5121616036fd8602dd8680303bed38481ba468e3 100644 (file)
--- a/gzguts.h
+++ b/gzguts.h
 #  include <io.h>
 #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