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 #if _MSC_VER < 1900
28 #define snprintf _snprintf
29 #if _MSC_VER < 1500
30 #define vsnprintf _vsnprintf
31 #endif
32 #define strdup _strdup
33 #define strncasecmp _strnicmp
34 #define strcasecmp _stricmp
35 #endif
36 #else
37 #ifndef __MINGW32__
38 #define strncasecmp strnicmp
39 #define strcasecmp stricmp
40 #endif /* __MINGW32__ */
41 #endif /* _MSC_VER */
42 
43 /* Enable newer diffie-hellman-group-exchange-sha1 syntax */
44 #define LIBSSH2_DH_GEX_NEW 1
45 
46 #endif /* LIBSSH2_CONFIG_H */
47 
48