win: Added missing includes with newer MSCV.
Этот коммит содержится в:
родитель
56c867edfa
Коммит
b1b42aeb9c
@ -45,6 +45,11 @@
|
|||||||
#define NTDDI_VERSION 0x05010000 /* NTDDI_WINXP */
|
#define NTDDI_VERSION 0x05010000 /* NTDDI_WINXP */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if _MSC_VER >= 1400
|
||||||
|
#include <io.h>
|
||||||
|
#undef close
|
||||||
|
#define close _close
|
||||||
|
#endif /* _MSC_VER */
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
|
|
||||||
|
@ -34,6 +34,15 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
#if _MSC_VER >= 1400
|
||||||
|
#include <io.h>
|
||||||
|
#undef open
|
||||||
|
#define open _open
|
||||||
|
#undef close
|
||||||
|
#define close _close
|
||||||
|
#undef read
|
||||||
|
#define read _read
|
||||||
|
#endif /* _MSC_VER */
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -38,6 +38,9 @@
|
|||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
#if _MSC_VER >= 1400
|
||||||
|
#include <io.h>
|
||||||
|
#endif /* _MSC_VER */
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
/* This is needed for a standard getpwuid_r on opensolaris */
|
/* This is needed for a standard getpwuid_r on opensolaris */
|
||||||
#define _POSIX_PTHREAD_SEMANTICS
|
#define _POSIX_PTHREAD_SEMANTICS
|
||||||
|
@ -28,12 +28,24 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#else
|
#if _MSC_VER >= 1400
|
||||||
|
#include <io.h>
|
||||||
|
#undef open
|
||||||
|
#define open _open
|
||||||
|
#undef close
|
||||||
|
#define close _close
|
||||||
|
#undef read
|
||||||
|
#define read _read
|
||||||
|
#undef write
|
||||||
|
#define write _write
|
||||||
|
#endif /* _MSC_VER */
|
||||||
|
#else /* _WIN32 */
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#endif
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
#include "libssh/callbacks.h"
|
#include "libssh/callbacks.h"
|
||||||
#include "libssh/socket.h"
|
#include "libssh/socket.h"
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user