Re-order headers to ensure that winsock2.h is included before windows.h. Otherwise, MinGW64 complains and MSVC barfs. This is necessary because os.h now includes windows.h via. w32tiger.h.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4724 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 079e7ad..5fe7fe0 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -35,7 +35,6 @@
#define mkdir(path, mode) _mkdir(path)
#endif
-#include <os/os.h>
#include <rfb/Logger_stdio.h>
#include <rfb/SecurityClient.h>
#include <rfb/Security.h>
@@ -45,6 +44,7 @@
#include <rfb/LogWriter.h>
#include <rfb/Timer.h>
#include <network/TcpSocket.h>
+#include <os/os.h>
#include <FL/Fl.H>
#include <FL/Fl_Widget.H>