summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2011-08-23 12:04:46 +0000
committerPeter Åstrand <astrand@cendio.se>2011-08-23 12:04:46 +0000
commitc359f36e692173e90f949733f0e454e8cd2b8caf (patch)
tree920b1b25e337380d8040f013fd93da6a82696399
parent92b4f9de986c5a9b72af8af61b8d3afcab1581d5 (diff)
downloadtigervnc-c359f36e692173e90f949733f0e454e8cd2b8caf.tar.gz
tigervnc-c359f36e692173e90f949733f0e454e8cd2b8caf.zip
Make sure to include config.h in every compilation unit. Otherwise,
the necessary defines will only be visible as a side effect of including other headers, leading to problems with things like translations, which will fail in various places. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4646 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--vncviewer/CConn.cxx4
-rw-r--r--vncviewer/DesktopWindow.cxx4
-rw-r--r--vncviewer/OSXPixelBuffer.cxx4
-rw-r--r--vncviewer/OptionsDialog.cxx4
-rw-r--r--vncviewer/ServerDialog.cxx4
-rw-r--r--vncviewer/UserDialog.cxx4
-rw-r--r--vncviewer/Viewport.cxx4
-rw-r--r--vncviewer/Win32PixelBuffer.cxx4
-rw-r--r--vncviewer/X11PixelBuffer.cxx4
-rw-r--r--vncviewer/parameters.cxx4
-rw-r--r--vncviewer/vncviewer.cxx4
11 files changed, 44 insertions, 0 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index 6f6a21a7..d69cd4e1 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -17,6 +17,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#ifndef _WIN32
#include <unistd.h>
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 6ff631c7..47109fb8 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -17,6 +17,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <string.h>
diff --git a/vncviewer/OSXPixelBuffer.cxx b/vncviewer/OSXPixelBuffer.cxx
index b5882d7a..77b435dd 100644
--- a/vncviewer/OSXPixelBuffer.cxx
+++ b/vncviewer/OSXPixelBuffer.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <ApplicationServices/ApplicationServices.h>
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx
index 20465b55..ca5572bd 100644
--- a/vncviewer/OptionsDialog.cxx
+++ b/vncviewer/OptionsDialog.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <list>
diff --git a/vncviewer/ServerDialog.cxx b/vncviewer/ServerDialog.cxx
index 9d0d1572..4f21eb1c 100644
--- a/vncviewer/ServerDialog.cxx
+++ b/vncviewer/ServerDialog.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <FL/Fl.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Button.H>
diff --git a/vncviewer/UserDialog.cxx b/vncviewer/UserDialog.cxx
index 0c2559f3..f36d8437 100644
--- a/vncviewer/UserDialog.cxx
+++ b/vncviewer/UserDialog.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <string.h>
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index 0936a632..72de8e88 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -17,6 +17,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <string.h>
diff --git a/vncviewer/Win32PixelBuffer.cxx b/vncviewer/Win32PixelBuffer.cxx
index 8f9bf024..626bb967 100644
--- a/vncviewer/Win32PixelBuffer.cxx
+++ b/vncviewer/Win32PixelBuffer.cxx
@@ -17,6 +17,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <stdlib.h>
diff --git a/vncviewer/X11PixelBuffer.cxx b/vncviewer/X11PixelBuffer.cxx
index a3f8ebfd..548591e1 100644
--- a/vncviewer/X11PixelBuffer.cxx
+++ b/vncviewer/X11PixelBuffer.cxx
@@ -17,6 +17,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <assert.h>
#include <stdlib.h>
diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx
index f88aa5cd..99b224e6 100644
--- a/vncviewer/parameters.cxx
+++ b/vncviewer/parameters.cxx
@@ -17,6 +17,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "parameters.h"
using namespace rfb;
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 4c7e2122..6fea1992 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -18,6 +18,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include <stdio.h>
#include <stdlib.h>