aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-12-30 10:20:13 +0100
committerPierre Ossman <ossman@cendio.se>2021-12-30 10:23:49 +0100
commitb6d6db9b7c49898a663e9a9bc309ba10275a65f4 (patch)
tree3a0dabeb9246269e4d87e0daa47e6729d6b5fc81 /tests
parent425d8302b44137234e83d62edb70754d114b5cba (diff)
downloadtigervnc-b6d6db9b7c49898a663e9a9bc309ba10275a65f4.tar.gz
tigervnc-b6d6db9b7c49898a663e9a9bc309ba10275a65f4.zip
Be consistent in including config.h
The generally recommended way is to include it from source files, not headers. We had a mix of both. Let's try to be consistent and follow the recommended way.
Diffstat (limited to 'tests')
-rw-r--r--tests/perf/convperf.cxx4
-rw-r--r--tests/perf/decperf.cxx4
-rw-r--r--tests/perf/encperf.cxx4
-rw-r--r--tests/perf/fbperf.cxx4
-rw-r--r--tests/perf/util.cxx4
-rw-r--r--tests/unit/conv.cxx4
-rw-r--r--tests/unit/convertlf.cxx4
-rw-r--r--tests/unit/emulatemb.cxx4
-rw-r--r--tests/unit/gesturehandler.cxx4
-rw-r--r--tests/unit/hostport.cxx4
-rw-r--r--tests/unit/pixelformat.cxx4
-rw-r--r--tests/unit/unicode.cxx4
12 files changed, 48 insertions, 0 deletions
diff --git a/tests/perf/convperf.cxx b/tests/perf/convperf.cxx
index e4a3fd52..4897f159 100644
--- a/tests/perf/convperf.cxx
+++ b/tests/perf/convperf.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/perf/decperf.cxx b/tests/perf/decperf.cxx
index 23f3fe24..21674127 100644
--- a/tests/perf/decperf.cxx
+++ b/tests/perf/decperf.cxx
@@ -24,6 +24,10 @@
* format.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
diff --git a/tests/perf/encperf.cxx b/tests/perf/encperf.cxx
index 69121ffa..8fb9553d 100644
--- a/tests/perf/encperf.cxx
+++ b/tests/perf/encperf.cxx
@@ -26,6 +26,10 @@
* are not encoded in the file and must be specified by the user.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#define __USE_MINGW_ANSI_STDIO 1
#include <stdio.h>
diff --git a/tests/perf/fbperf.cxx b/tests/perf/fbperf.cxx
index a19ee479..2b21bdd8 100644
--- a/tests/perf/fbperf.cxx
+++ b/tests/perf/fbperf.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <math.h>
#include <sys/time.h>
diff --git a/tests/perf/util.cxx b/tests/perf/util.cxx
index 17a83698..98b2568e 100644
--- a/tests/perf/util.cxx
+++ b/tests/perf/util.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/unit/conv.cxx b/tests/unit/conv.cxx
index 3901b9d1..b14f8987 100644
--- a/tests/unit/conv.cxx
+++ b/tests/unit/conv.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/unit/convertlf.cxx b/tests/unit/convertlf.cxx
index 6bd98fe2..b85b270c 100644
--- a/tests/unit/convertlf.cxx
+++ b/tests/unit/convertlf.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <rfb/util.h>
diff --git a/tests/unit/emulatemb.cxx b/tests/unit/emulatemb.cxx
index 3d95beea..927f3e48 100644
--- a/tests/unit/emulatemb.cxx
+++ b/tests/unit/emulatemb.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <vector>
#include <unistd.h>
diff --git a/tests/unit/gesturehandler.cxx b/tests/unit/gesturehandler.cxx
index 0bf2ca77..12d83556 100644
--- a/tests/unit/gesturehandler.cxx
+++ b/tests/unit/gesturehandler.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/unit/hostport.cxx b/tests/unit/hostport.cxx
index 00026e61..af60643a 100644
--- a/tests/unit/hostport.cxx
+++ b/tests/unit/hostport.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <rfb/Hostname.h>
diff --git a/tests/unit/pixelformat.cxx b/tests/unit/pixelformat.cxx
index 2e0c0bbb..6ab736b8 100644
--- a/tests/unit/pixelformat.cxx
+++ b/tests/unit/pixelformat.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <rfb/PixelFormat.h>
diff --git a/tests/unit/unicode.cxx b/tests/unit/unicode.cxx
index 52548e00..aa2af85b 100644
--- a/tests/unit/unicode.cxx
+++ b/tests/unit/unicode.cxx
@@ -16,6 +16,10 @@
* USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <wchar.h>