From c359f36e692173e90f949733f0e454e8cd2b8caf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Tue, 23 Aug 2011 12:04:46 +0000 Subject: [PATCH] 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 --- vncviewer/CConn.cxx | 4 ++++ vncviewer/DesktopWindow.cxx | 4 ++++ vncviewer/OSXPixelBuffer.cxx | 4 ++++ vncviewer/OptionsDialog.cxx | 4 ++++ vncviewer/ServerDialog.cxx | 4 ++++ vncviewer/UserDialog.cxx | 4 ++++ vncviewer/Viewport.cxx | 4 ++++ vncviewer/Win32PixelBuffer.cxx | 4 ++++ vncviewer/X11PixelBuffer.cxx | 4 ++++ vncviewer/parameters.cxx | 4 ++++ vncviewer/vncviewer.cxx | 4 ++++ 11 files changed, 44 insertions(+) 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 +#endif + #include #ifndef _WIN32 #include 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 +#endif + #include #include #include 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 +#endif + #include #include 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 +#endif + #include #include 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 +#endif + #include #include #include 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 +#endif + #include #include #include 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 +#endif + #include #include #include 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 +#endif + #include #include 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 +#endif + #include #include 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 +#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 +#endif + #include #include #include -- 2.39.5