summaryrefslogtreecommitdiffstats
path: root/libvncclient
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2010-10-21 13:45:27 +0200
committerChristian Beier <dontmind@freeshell.org>2010-10-21 13:45:27 +0200
commit128d06aaaa40f990e80d67bde851b7c6b2369615 (patch)
treebd6f400db04f02632e2f7dfb31cf3bd1d14f79f8 /libvncclient
parent71ad3229f697a74bf633500200728d345be65410 (diff)
downloadlibtdevnc-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 <tobias.doerffel@gmail.com>, thanks!
Diffstat (limited to 'libvncclient')
-rw-r--r--libvncclient/rfbproto.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index 602594b..098ae38 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -31,13 +31,9 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
-#else
-#define strncasecmp _strnicmp
-#endif
-#include <errno.h>
-#ifndef WIN32
#include <pwd.h>
#endif
+#include <errno.h>
#include <rfb/rfbclient.h>
#ifdef LIBVNCSERVER_HAVE_LIBZ
#include <zlib.h>