LibVNCClient: #undef these types in case it's WIN32.

The various other headers include windows.h and the winsock headers
which give an error when SOCKET and socklen_t are already defined.
pull/1/head
Christian Beier 12 years ago
parent 3e0cf05e12
commit 231763cb0e

@ -35,6 +35,10 @@
#endif
#include <errno.h>
#include <rfb/rfbclient.h>
#ifdef WIN32
#undef SOCKET
#undef socklen_t
#endif
#ifdef LIBVNCSERVER_HAVE_LIBZ
#include <zlib.h>
#ifdef __CHECKER__
@ -52,10 +56,6 @@
#include <time.h>
#ifdef LIBVNCSERVER_WITH_CLIENT_GCRYPT
#ifdef WIN32
#undef SOCKET
#undef socklen_t
#endif
#include <gcrypt.h>
#endif

Loading…
Cancel
Save