*/
#include <assert.h>
+#ifndef _WIN32
#include <unistd.h>
+#endif
#include <rfb/CMsgWriter.h>
#include <rfb/encodings.h>
#include "i18n.h"
#include "parameters.h"
+#ifdef WIN32
+#include "win32.h"
+#endif
+
using namespace rdr;
using namespace rfb;
using namespace std;
#include <stdio.h>
#include <string.h>
-#include <FL/Fl_Scroll.H>
-#include <FL/x.H>
-
#include <rfb/LogWriter.h>
#include "DesktopWindow.h"
#include "i18n.h"
#include "parameters.h"
+#include <FL/Fl_Scroll.H>
+#include <FL/x.H>
+
#ifdef WIN32
#include "win32.h"
#endif
#include <map>
-#include <FL/Fl.H>
-#include <FL/Fl_Window.H>
-
#include <rfb/Rect.h>
#include "Viewport.h"
+#include <FL/Fl.H>
+#include <FL/Fl_Window.H>
+
class CConn;
class DesktopWindow : public Fl_Window {
#include <list>
-#include <FL/Fl_Tabs.H>
-#include <FL/Fl_Button.H>
-#include <FL/Fl_Return_Button.H>
-
#include <rdr/types.h>
#include <rfb/encodings.h>
#include "i18n.h"
#include "parameters.h"
+#include <FL/Fl_Tabs.H>
+#include <FL/Fl_Button.H>
+#include <FL/Fl_Return_Button.H>
+
using namespace std;
using namespace rdr;
using namespace rfb;
#include <stdio.h>
#include <string.h>
-#include <FL/fl_draw.H>
-#include <FL/fl_ask.H>
-
#include <rfb/CMsgWriter.h>
#include <rfb/LogWriter.h>
#include "parameters.h"
#include "keysym2ucs.h"
+#include <FL/fl_draw.H>
+#include <FL/fl_ask.H>
+
+#ifdef WIN32
+#include "win32.h"
+#endif
+
using namespace rfb;
using namespace rdr;
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
* Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB
- * Copyright (C) 2011 D. R. Commander
+ * Copyright (C) 2011 D. R. Commander. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "ServerDialog.h"
#include "UserDialog.h"
+#ifdef WIN32
+#include "win32.h"
+#endif
+
rfb::LogWriter vlog("main");
using namespace network;
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
* Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB
+ * Copyright (C) 2011 D. R. Commander. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#ifndef __VNCVIEWER_WIN32_H__
#define __VNCVIEWER_WIN32_H__
+#ifdef _MSC_VER
+#define snprintf(str, n, format, ...) _snprintf_s(str, n, _TRUNCATE, format, __VA_ARGS__)
+#endif
+
extern "C" {
int win32_enable_lowlevel_keyboard(HWND hwnd);