keyfiles: Fixed the windows defines.
Этот коммит содержится в:
родитель
a2fe4b2b2c
Коммит
8c318fcb21
@ -33,17 +33,18 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#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>
|
||||
#ifdef _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 */
|
||||
#else
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#include "libssh/priv.h"
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user