diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connector.c | 4 | ||||
-rw-r--r-- | src/misc.c | 6 | ||||
-rw-r--r-- | src/pki.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/connector.c b/src/connector.c index b2f03abd..54e85241 100644 --- a/src/connector.c +++ b/src/connector.c @@ -27,7 +27,7 @@ #define CHUNKSIZE 4096 #ifdef _WIN32 -# if _MSC_VER >= 1400 +# ifdef HAVE_IO_H # include <io.h> # undef open # define open _open @@ -37,7 +37,7 @@ # define read _read # undef unlink # define unlink _unlink -# endif /* _MSC_VER */ +# endif /* HAVE_IO_H */ #endif struct ssh_connector_struct { @@ -59,9 +59,9 @@ #include <shlobj.h> #include <direct.h> -#if _MSC_VER >= 1400 -# include <io.h> -#endif /* _MSC_VER */ +#ifdef HAVE_IO_H +#include <io.h> +#endif /* HAVE_IO_H */ #endif /* _WIN32 */ @@ -41,7 +41,7 @@ #include <sys/types.h> #ifdef _WIN32 -# if _MSC_VER >= 1400 +# ifdef HAVE_IO_H # include <io.h> # undef open # define open _open @@ -51,7 +51,7 @@ # define read _read # undef unlink # define unlink _unlink -# endif /* _MSC_VER */ +# endif /* HAVE_IO_H */ #endif #include "libssh/libssh.h" |