mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-08 19:02:07 +03:00
Silence warnings when win32 is already defined.
Enable zlib and newer diffie-hellman-group-exchange-sha1 syntax.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
#ifndef WIN32
|
||||||
#define WIN32
|
#define WIN32
|
||||||
|
#endif
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <mswsock.h>
|
#include <mswsock.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
@@ -29,3 +31,8 @@ static inline int usleep(int udelay)
|
|||||||
|
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
|
||||||
|
/* Compile in zlib support */
|
||||||
|
#define LIBSSH2_HAVE_ZLIB 1
|
||||||
|
|
||||||
|
/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
|
||||||
|
#define LIBSSH2_DH_GEX_NEW 1
|
||||||
|
Reference in New Issue
Block a user