summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorDaniel Cohen Gindi <danielgindi@gmail.com>2014-09-20 17:16:52 +0300
committerDaniel Cohen Gindi <danielgindi@gmail.com>2014-09-20 17:46:33 +0300
commit901eba9f4608de6af231fde34264ede878c4d253 (patch)
tree5f75406c2fad59e6148010948a5c3d23088bf6f0 /rfb
parent8c58593649f385a8bbaafefc768181d7a24c463d (diff)
downloadlibtdevnc-901eba9f4608de6af231fde34264ede878c4d253.tar.gz
libtdevnc-901eba9f4608de6af231fde34264ede878c4d253.zip
Generally adjusting headers for compiling on windows without the mixing of Winsock 1 and 2.
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfbclient.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index 9ac3c37..aedb4f4 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -31,6 +31,10 @@
* @file rfbclient.h
*/
+#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN /* Prevent loading any Winsock 1.x headers from windows.h */
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>