From 46f017e75103386e691c1ebb0edb76fba6273aca Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Sun, 30 Nov 2014 16:03:58 +0100 Subject: [PATCH] MinGW build: Fixed redefine warnings. --- win32/libssh2_config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win32/libssh2_config.h b/win32/libssh2_config.h index 56646da2..3e3caf4a 100644 --- a/win32/libssh2_config.h +++ b/win32/libssh2_config.h @@ -16,7 +16,7 @@ #define HAVE_INTTYPES_H #define HAVE_SYS_TIME_H #define HAVE_GETTIMEOFDAY -#endif +#endif /* __MINGW32__ */ #define HAVE_LIBCRYPT32 #define HAVE_WINSOCK2_H @@ -32,8 +32,10 @@ #define strncasecmp _strnicmp #define strcasecmp _stricmp #else +#ifndef __MINGW32__ #define strncasecmp strnicmp #define strcasecmp stricmp +#endif /* __MINGW32__ */ #endif /* _MSC_VER */ /* Enable newer diffie-hellman-group-exchange-sha1 syntax */