Fix build issues with Visual C++ (implemented macro version of snprintf + re-ordered headers to ensure that winsock is included ahead of windows.h)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4527 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index 5ae26f0..8d233f0 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -18,7 +18,9 @@
*/
#include <assert.h>
+#ifndef _WIN32
#include <unistd.h>
+#endif
#include <rfb/CMsgWriter.h>
#include <rfb/encodings.h>
@@ -37,6 +39,10 @@
#include "i18n.h"
#include "parameters.h"
+#ifdef WIN32
+#include "win32.h"
+#endif
+
using namespace rdr;
using namespace rfb;
using namespace std;