summaryrefslogtreecommitdiff
path: root/libs/libssh2/src/libssh2_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libssh2/src/libssh2_config.h')
-rw-r--r--libs/libssh2/src/libssh2_config.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/libs/libssh2/src/libssh2_config.h b/libs/libssh2/src/libssh2_config.h
new file mode 100644
index 0000000000..c2e98356a4
--- /dev/null
+++ b/libs/libssh2/src/libssh2_config.h
@@ -0,0 +1,50 @@
+#ifndef LIBSSH2_CONFIG_H
+#define LIBSSH2_CONFIG_H
+
+#ifndef WIN32
+#define WIN32
+#endif
+#ifndef _CRT_SECURE_NO_DEPRECATE
+#define _CRT_SECURE_NO_DEPRECATE 1
+#endif /* _CRT_SECURE_NO_DEPRECATE */
+#include <winsock2.h>
+#include <mswsock.h>
+#include <ws2tcpip.h>
+
+#ifdef __MINGW32__
+#define HAVE_UNISTD_H
+#define HAVE_INTTYPES_H
+#define HAVE_SYS_TIME_H
+#define HAVE_GETTIMEOFDAY
+#endif /* __MINGW32__ */
+
+#define HAVE_WINSOCK2_H
+#define HAVE_WINDOWS_H
+#define HAVE_WS2TCPIP_H
+#define HAVE_IOCTLSOCKET
+#define HAVE_SELECT
+
+#define LIBSSH2_OPENSSL
+
+#ifdef _MSC_VER
+#if _MSC_VER < 1900
+#define snprintf _snprintf
+#if _MSC_VER < 1500
+#define vsnprintf _vsnprintf
+#endif
+#define strdup _strdup
+#define strncasecmp _strnicmp
+#define strcasecmp _stricmp
+#endif
+#else
+#ifndef __MINGW32__
+#define strncasecmp strnicmp
+#define strcasecmp stricmp
+#endif /* __MINGW32__ */
+#endif /* _MSC_VER */
+
+/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
+#define LIBSSH2_DH_GEX_NEW 1
+
+#endif /* LIBSSH2_CONFIG_H */
+