Move code inside #ifdef _MSC_VER to compat.h.

This commit is contained in:
Erik de Castro Lopo
2012-06-22 16:03:04 +10:00
parent 5b62b770bc
commit a7e3705d05
5 changed files with 32 additions and 42 deletions

View File

@@ -33,14 +33,6 @@
# include <config.h>
#endif
#if defined _MSC_VER || defined __MINGW32__
#include <io.h> /* for _setmode() */
#include <fcntl.h> /* for _O_BINARY */
#endif
#if defined __CYGWIN__ || defined __EMX__
#include <io.h> /* for setmode(), O_BINARY */
#include <fcntl.h> /* for _O_BINARY */
#endif
#include <limits.h>
#include <stdio.h>
#include <stdlib.h> /* for malloc() */