Skip to content

Commit

Permalink
Use underscored I/O function names for WINAPI_FAMILY.
Browse files Browse the repository at this point in the history
Suggested by E. Timothy Uy.
  • Loading branch information
madler committed Feb 24, 2013
1 parent 931aa25 commit d211ecd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
# 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
Expand Down

0 comments on commit d211ecd

Please sign in to comment.