Skip to content

Commit f0b22df

Browse files
committed
patch libssh2 to work with vs2015
1 parent 6e57e40 commit f0b22df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vendor/libssh2/win32/libssh2_config.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#define HAVE_SELECT
2424

2525
#ifdef _MSC_VER
26+
#if _MSC_VER < 1900
2627
#define snprintf _snprintf
2728
#if _MSC_VER < 1500
2829
#define vsnprintf _vsnprintf
@@ -33,10 +34,10 @@
3334
#else
3435
#define strncasecmp strnicmp
3536
#define strcasecmp stricmp
37+
#endif
3638
#endif /* _MSC_VER */
3739

3840
/* Enable newer diffie-hellman-group-exchange-sha1 syntax */
3941
#define LIBSSH2_DH_GEX_NEW 1
4042

4143
#endif /* LIBSSH2_CONFIG_H */
42-

0 commit comments

Comments
 (0)