1 #ifndef LIBSSH2_CONFIG_H
2 #define LIBSSH2_CONFIG_H
3 
4 #ifndef WIN32
5 #define WIN32
6 #endif
7 #ifndef _CRT_SECURE_NO_DEPRECATE
8 #define _CRT_SECURE_NO_DEPRECATE 1
9 #endif /* _CRT_SECURE_NO_DEPRECATE */
10 #include <winsock2.h>
11 #include <mswsock.h>
12 #include <ws2tcpip.h>
13 
14 #ifdef __MINGW32__
15 #define HAVE_UNISTD_H
16 #define HAVE_INTTYPES_H
17 #define HAVE_SYS_TIME_H
18 #define HAVE_GETTIMEOFDAY
19 #endif /* __MINGW32__ */
20 
21 #define HAVE_LIBCRYPT32
22 #define HAVE_WINSOCK2_H
23 #define HAVE_IOCTLSOCKET
24 #define HAVE_SELECT
25 
26 #ifdef _MSC_VER
27 #define snprintf _snprintf
28 #if _MSC_VER < 1500
29 #define vsnprintf _vsnprintf
30 #endif
31 #define strdup _strdup
32 #define strncasecmp _strnicmp
33 #define strcasecmp _stricmp
34 #else
35 #ifndef __MINGW32__
36 #define strncasecmp strnicmp
37 #define strcasecmp stricmp
38 #endif /* __MINGW32__ */
39 #endif /* _MSC_VER */
40 
41 /* Enable newer diffie-hellman-group-exchange-sha1 syntax */
42 #define LIBSSH2_DH_GEX_NEW 1
43 
44 #endif /* LIBSSH2_CONFIG_H */
45 
46