summaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
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 /vncviewer/Viewport.cxx
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
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r--vncviewer/Viewport.cxx4
1 files changed, 4 insertions, 0 deletions
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>