2007-04-12 23:37:09 +02:00
|
|
|
#ifndef LIBSSH2_CONFIG_H
|
|
|
|
#define LIBSSH2_CONFIG_H
|
|
|
|
|
|
|
|
#ifndef WIN32
|
|
|
|
#define WIN32
|
2005-01-22 03:29:37 +01:00
|
|
|
#endif
|
2005-01-03 23:46:15 +01:00
|
|
|
#include <winsock2.h>
|
|
|
|
#include <mswsock.h>
|
|
|
|
#include <ws2tcpip.h>
|
|
|
|
|
2007-02-07 22:21:06 +01:00
|
|
|
#ifdef __MINGW32__
|
2007-04-12 23:37:09 +02:00
|
|
|
#define HAVE_UNISTD_H
|
|
|
|
#define HAVE_INTTYPES_H
|
|
|
|
#define HAVE_SYS_TIME_H
|
2007-02-07 22:21:06 +01:00
|
|
|
#endif
|
|
|
|
|
2007-04-27 00:59:29 +02:00
|
|
|
#define HAVE_WINSOCK2_H
|
2007-04-12 23:37:09 +02:00
|
|
|
#define HAVE_IOCTLSOCKET
|
2008-09-29 16:16:19 +02:00
|
|
|
#define HAVE_SELECT
|
2007-04-12 23:37:09 +02:00
|
|
|
|
2007-07-20 11:52:02 +02:00
|
|
|
#ifdef _MSC_VER
|
2007-04-12 23:37:09 +02:00
|
|
|
#define snprintf _snprintf
|
2008-09-29 20:59:40 +02:00
|
|
|
#if _MSC_VER < 1500
|
2007-06-10 13:16:36 +02:00
|
|
|
#define vsnprintf _vsnprintf
|
2008-09-29 20:59:40 +02:00
|
|
|
#else
|
|
|
|
#define ssize_t SSIZE_T
|
|
|
|
#define uint32_t UINT32
|
|
|
|
#endif
|
2007-07-20 11:52:02 +02:00
|
|
|
#define strncasecmp _strnicmp
|
|
|
|
#define strcasecmp _stricmp
|
|
|
|
#else
|
|
|
|
#define strncasecmp strnicmp
|
|
|
|
#define strcasecmp stricmp
|
|
|
|
#endif /* _MSC_VER */
|
2005-01-03 23:46:15 +01:00
|
|
|
|
2005-01-22 03:29:37 +01:00
|
|
|
/* Compile in zlib support */
|
|
|
|
#define LIBSSH2_HAVE_ZLIB 1
|
|
|
|
|
|
|
|
/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
|
|
|
|
#define LIBSSH2_DH_GEX_NEW 1
|
2007-02-07 22:21:06 +01:00
|
|
|
|
2007-04-12 23:37:09 +02:00
|
|
|
#endif /* LIBSSH2_CONFIG_H */
|
|
|
|
|
|
|
|
|