diff options
author | Christian Beier <[email protected]> | 2010-10-21 13:45:27 +0200 |
---|---|---|
committer | Christian Beier <[email protected]> | 2010-10-21 13:45:27 +0200 |
commit | 128d06aaaa40f990e80d67bde851b7c6b2369615 (patch) | |
tree | bd6f400db04f02632e2f7dfb31cf3bd1d14f79f8 /rfb | |
parent | 71ad3229f697a74bf633500200728d345be65410 (diff) | |
download | libtdevnc-128d06aaaa40f990e80d67bde851b7c6b2369615.tar.gz libtdevnc-128d06aaaa40f990e80d67bde851b7c6b2369615.zip |
Only define strncasecmp to _strnicmp when using MS compiler.
Redefining strncasecmp to _strnicmp makes libvncclient hang forever in
SetFormatAndEncodings() on Windows when built with MinGW64.
Reported by Tobias Doerffel <[email protected]>, thanks!
Diffstat (limited to 'rfb')
-rw-r--r-- | rfb/rfbproto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h index 4e80fb3..c20f95c 100644 --- a/rfb/rfbproto.h +++ b/rfb/rfbproto.h @@ -74,6 +74,11 @@ #define LIBVNCSERVER_WORDS_BIGENDIAN #endif +/* MS compilers don't have strncasecmp */ +#ifdef _MSC_VER +#define strncasecmp _strnicmp +#endif + #if !defined(WIN32) || defined(__MINGW32__) #define max(a,b) (((a)>(b))?(a):(b)) #ifdef LIBVNCSERVER_HAVE_SYS_TIME_H |