aboutsummaryrefslogtreecommitdiff
path: root/lib/libcurl-mingw32/include/libssh2_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcurl-mingw32/include/libssh2_config.h')
-rw-r--r--lib/libcurl-mingw32/include/libssh2_config.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/libcurl-mingw32/include/libssh2_config.h b/lib/libcurl-mingw32/include/libssh2_config.h
new file mode 100644
index 0000000000..120ec9f29b
--- /dev/null
+++ b/lib/libcurl-mingw32/include/libssh2_config.h
@@ -0,0 +1,44 @@
+#ifndef LIBSSH2_CONFIG_H
+#define LIBSSH2_CONFIG_H
+
+#ifndef WIN32
+#define WIN32
+#endif
+#include <winsock2.h>
+#include <mswsock.h>
+#include <ws2tcpip.h>
+
+#ifdef __MINGW32__
+#define HAVE_UNISTD_H
+#define HAVE_INTTYPES_H
+#define HAVE_SYS_TIME_H
+#endif
+
+#define HAVE_WINSOCK2_H
+#define HAVE_IOCTLSOCKET
+#define HAVE_SELECT
+
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#if _MSC_VER < 1500
+#define vsnprintf _vsnprintf
+#else
+#define ssize_t SSIZE_T
+#define uint32_t UINT32
+#endif
+#define strncasecmp _strnicmp
+#define strcasecmp _stricmp
+#else
+#define strncasecmp strnicmp
+#define strcasecmp stricmp
+#endif /* _MSC_VER */
+
+/* Compile in zlib support */
+#define LIBSSH2_HAVE_ZLIB 1
+
+/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
+#define LIBSSH2_DH_GEX_NEW 1
+
+#endif /* LIBSSH2_CONFIG_H */
+
+