1
0
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:
Edin Kadribasic
2005-01-22 02:29:37 +00:00
parent 87d61a39e8
commit 2c5a8480b0

View File

@@ -1,4 +1,6 @@
#define WIN32 #ifndef 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