diff --git a/client/application.cpp b/client/application.cpp
index 9e2c7e19..1f3ad242 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#ifdef WIN32
diff --git a/client/canvas.cpp b/client/canvas.cpp
index 284a8149..3b5f4b69 100644
--- a/client/canvas.cpp
+++ b/client/canvas.cpp
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "canvas.h"
diff --git a/client/client_net_socket.cpp b/client/client_net_socket.cpp
index 6ce44c52..412c1fd5 100644
--- a/client/client_net_socket.cpp
+++ b/client/client_net_socket.cpp
@@ -18,6 +18,9 @@
Author:
yhalperi@redhat.com
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "client_net_socket.h"
diff --git a/client/cmd_line_parser.cpp b/client/cmd_line_parser.cpp
index ec00c3e3..2f63c049 100644
--- a/client/cmd_line_parser.cpp
+++ b/client/cmd_line_parser.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
diff --git a/client/controller.cpp b/client/controller.cpp
index e8d37e65..e7c4b955 100644
--- a/client/controller.cpp
+++ b/client/controller.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "controller.h"
diff --git a/client/cursor.cpp b/client/cursor.cpp
index 0b7d956f..2ca2cd7f 100644
--- a/client/cursor.cpp
+++ b/client/cursor.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "cursor.h"
diff --git a/client/cursor_channel.cpp b/client/cursor_channel.cpp
index c973e9da..12e2470b 100644
--- a/client/cursor_channel.cpp
+++ b/client/cursor_channel.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "cursor_channel.h"
diff --git a/client/display_channel.cpp b/client/display_channel.cpp
index 2950c30d..16a014cf 100644
--- a/client/display_channel.cpp
+++ b/client/display_channel.cpp
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "canvas.h"
diff --git a/client/foreign_menu.cpp b/client/foreign_menu.cpp
index e5d7459d..926e266f 100644
--- a/client/foreign_menu.cpp
+++ b/client/foreign_menu.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "foreign_menu.h"
diff --git a/client/glz_decode_tmpl.c b/client/glz_decode_tmpl.c
index 2c475719..2e4f1369 100644
--- a/client/glz_decode_tmpl.c
+++ b/client/glz_decode_tmpl.c
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
// External defines: PLT, RGBX/PLTXX/ALPHA, TO_RGB32.
// If PLT4/1 and TO_RGB32 are defined, we need CAST_PLT_DISTANCE (
diff --git a/client/glz_decoder.cpp b/client/glz_decoder.cpp
index c5ccb956..dea1a1be 100644
--- a/client/glz_decoder.cpp
+++ b/client/glz_decoder.cpp
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "glz_decoder_config.h"
diff --git a/client/glz_decoder_window.cpp b/client/glz_decoder_window.cpp
index ab081f84..54fdbdc8 100644
--- a/client/glz_decoder_window.cpp
+++ b/client/glz_decoder_window.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
diff --git a/client/gui/gui.cpp b/client/gui/gui.cpp
index eba241f7..abfe1110 100644
--- a/client/gui/gui.cpp
+++ b/client/gui/gui.cpp
@@ -15,6 +15,10 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
+
#include "common.h"
#include
diff --git a/client/gui/resource_provider.cpp b/client/gui/resource_provider.cpp
index 2b5c44f3..b80ce092 100644
--- a/client/gui/resource_provider.cpp
+++ b/client/gui/resource_provider.cpp
@@ -15,6 +15,10 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
+
#include "common.h"
#include "resource_provider.h"
diff --git a/client/gui/softrenderer.cpp b/client/gui/softrenderer.cpp
index bdc7a6cd..92a1c838 100644
--- a/client/gui/softrenderer.cpp
+++ b/client/gui/softrenderer.cpp
@@ -15,10 +15,11 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
-#include "common.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+
+#include "common.h"
#include "utils.h"
#include "debug.h"
diff --git a/client/gui/softtexture.cpp b/client/gui/softtexture.cpp
index a633f24e..b41dd65b 100644
--- a/client/gui/softtexture.cpp
+++ b/client/gui/softtexture.cpp
@@ -15,12 +15,11 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
-#include "common.h"
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+#include "common.h"
#include "softtexture.h"
#include "softrenderer.h"
diff --git a/client/hot_keys.cpp b/client/hot_keys.cpp
index 053f4990..65b1bc34 100644
--- a/client/hot_keys.cpp
+++ b/client/hot_keys.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "hot_keys.h"
diff --git a/client/inputs_channel.cpp b/client/inputs_channel.cpp
index ae41624f..4d1232a3 100644
--- a/client/inputs_channel.cpp
+++ b/client/inputs_channel.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "inputs_channel.h"
diff --git a/client/jpeg_decoder.cpp b/client/jpeg_decoder.cpp
index f7aba765..74cb758b 100644
--- a/client/jpeg_decoder.cpp
+++ b/client/jpeg_decoder.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "jpeg_decoder.h"
diff --git a/client/menu.cpp b/client/menu.cpp
index 17438218..ebbd323a 100644
--- a/client/menu.cpp
+++ b/client/menu.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "menu.h"
diff --git a/client/mjpeg_decoder.cpp b/client/mjpeg_decoder.cpp
index 49509507..0ac6eaee 100644
--- a/client/mjpeg_decoder.cpp
+++ b/client/mjpeg_decoder.cpp
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "debug.h"
diff --git a/client/monitor.cpp b/client/monitor.cpp
index 0b73956d..3d742967 100644
--- a/client/monitor.cpp
+++ b/client/monitor.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "monitor.h"
diff --git a/client/playback_channel.cpp b/client/playback_channel.cpp
index 1e902a90..731b5202 100644
--- a/client/playback_channel.cpp
+++ b/client/playback_channel.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "red_client.h"
diff --git a/client/process_loop.cpp b/client/process_loop.cpp
index 9a0dadcb..9cd530e2 100644
--- a/client/process_loop.cpp
+++ b/client/process_loop.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "process_loop.h"
diff --git a/client/record_channel.cpp b/client/record_channel.cpp
index 084866cc..738f98fd 100644
--- a/client/record_channel.cpp
+++ b/client/record_channel.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "red_client.h"
diff --git a/client/red_channel.cpp b/client/red_channel.cpp
index f4cdf529..bcd70514 100644
--- a/client/red_channel.cpp
+++ b/client/red_channel.cpp
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "red_channel.h"
diff --git a/client/red_client.cpp b/client/red_client.cpp
index ea852786..7fd2b5e9 100644
--- a/client/red_client.cpp
+++ b/client/red_client.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include
diff --git a/client/red_gdi_canvas.cpp b/client/red_gdi_canvas.cpp
index 2e0b4538..038f784d 100644
--- a/client/red_gdi_canvas.cpp
+++ b/client/red_gdi_canvas.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include
diff --git a/client/red_gl_canvas.cpp b/client/red_gl_canvas.cpp
index db47aafa..92529ce5 100644
--- a/client/red_gl_canvas.cpp
+++ b/client/red_gl_canvas.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include
diff --git a/client/red_peer.cpp b/client/red_peer.cpp
index 86a90478..19919a61 100644
--- a/client/red_peer.cpp
+++ b/client/red_peer.cpp
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include
diff --git a/client/red_sw_canvas.cpp b/client/red_sw_canvas.cpp
index fec6605e..782cacab 100644
--- a/client/red_sw_canvas.cpp
+++ b/client/red_sw_canvas.cpp
@@ -15,6 +15,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include
diff --git a/client/screen.cpp b/client/screen.cpp
index 575ab5df..d8b6dde4 100644
--- a/client/screen.cpp
+++ b/client/screen.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "screen.h"
diff --git a/client/screen_layer.cpp b/client/screen_layer.cpp
index 8a016b7e..4515be2e 100644
--- a/client/screen_layer.cpp
+++ b/client/screen_layer.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "screen_layer.h"
diff --git a/client/smartcard_channel.cpp b/client/smartcard_channel.cpp
index 32b6d8d6..e0e9b889 100644
--- a/client/smartcard_channel.cpp
+++ b/client/smartcard_channel.cpp
@@ -14,6 +14,10 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
+
#include
#include "client/red_client.h"
diff --git a/client/threads.cpp b/client/threads.cpp
index eb4b7a18..0b359e8e 100644
--- a/client/threads.cpp
+++ b/client/threads.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "threads.h"
diff --git a/client/tunnel_channel.cpp b/client/tunnel_channel.cpp
index 52587422..3ed45726 100644
--- a/client/tunnel_channel.cpp
+++ b/client/tunnel_channel.cpp
@@ -18,6 +18,9 @@
Author:
yhalperi@redhat.com
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "tunnel_channel.h"
diff --git a/client/utils.cpp b/client/utils.cpp
index 460f6107..01ea0d3a 100644
--- a/client/utils.cpp
+++ b/client/utils.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include
diff --git a/client/windows/event_sources_p.cpp b/client/windows/event_sources_p.cpp
index c3578572..4a9adf16 100644
--- a/client/windows/event_sources_p.cpp
+++ b/client/windows/event_sources_p.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "event_sources.h"
diff --git a/client/windows/main.cpp b/client/windows/main.cpp
index 9c401023..5d6f85b4 100644
--- a/client/windows/main.cpp
+++ b/client/windows/main.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include
diff --git a/client/windows/my_getopt.cpp b/client/windows/my_getopt.cpp
index 280850a4..da87655a 100644
--- a/client/windows/my_getopt.cpp
+++ b/client/windows/my_getopt.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "../../common/win/my_getopt-1.5/my_getopt.c"
diff --git a/client/windows/named_pipe.cpp b/client/windows/named_pipe.cpp
index 856235a2..76d77da6 100644
--- a/client/windows/named_pipe.cpp
+++ b/client/windows/named_pipe.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "named_pipe.h"
diff --git a/client/windows/pixels_source.cpp b/client/windows/pixels_source.cpp
index a27bfd37..167255bd 100644
--- a/client/windows/pixels_source.cpp
+++ b/client/windows/pixels_source.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include "pixels_source.h"
diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp
index f57413dd..c50d7fd5 100644
--- a/client/windows/platform.cpp
+++ b/client/windows/platform.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
diff --git a/client/windows/platform_utils.cpp b/client/windows/platform_utils.cpp
index eb87468b..b57e921a 100644
--- a/client/windows/platform_utils.cpp
+++ b/client/windows/platform_utils.cpp
@@ -14,6 +14,9 @@
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see .
*/
+#ifdef HAVE_CONFIG_H
+#include
+#endif
#include "common.h"
#include