summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2019-12-27 13:03:20 +0200
committerRan Benita <ran@unusedvar.com>2019-12-27 13:09:11 +0200
commit40aab05e77d746beca4119bb254e534e449f9130 (patch)
treea00ca09bbbdd5ae972fd479255b5b45db8ce6c61 /test
parentbdff8ebe3c0be4f55281a3ec7d70be753e2456c0 (diff)
downloadxorg-lib-libxkbcommon-40aab05e77d746beca4119bb254e534e449f9130.tar.gz
build: include config.h manually
Previously we included it with an `-include` compiler directive. But that's not portable. And it's better to be explicit anyway. Every .c file should have `include "config.h"` first thing. Signed-off-by: Ran Benita <ran@unusedvar.com>
Diffstat (limited to 'test')
-rw-r--r--test/atom.c2
-rw-r--r--test/buffercomp.c2
-rw-r--r--test/common.c2
-rw-r--r--test/compose.c2
-rw-r--r--test/context.c2
-rw-r--r--test/filecomp.c2
-rw-r--r--test/interactive-evdev.c2
-rw-r--r--test/interactive-wayland.c2
-rw-r--r--test/interactive-x11.c6
-rw-r--r--test/keymap.c2
-rw-r--r--test/keyseq.c2
-rw-r--r--test/keysym.c2
-rw-r--r--test/log.c2
-rw-r--r--test/print-compiled-keymap.c2
-rw-r--r--test/rmlvo-to-kccgst.c2
-rw-r--r--test/rmlvo-to-keymap.c2
-rw-r--r--test/rules-file-includes.c1
-rw-r--r--test/rules-file.c2
-rw-r--r--test/rulescomp.c2
-rw-r--r--test/state.c2
-rw-r--r--test/stringcomp.c2
-rw-r--r--test/utf8.c2
-rw-r--r--test/x11.c2
-rw-r--r--test/x11comp.c2
24 files changed, 49 insertions, 2 deletions
diff --git a/test/atom.c b/test/atom.c
index f196946..955b7da 100644
--- a/test/atom.c
+++ b/test/atom.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <time.h>
#include "test.h"
diff --git a/test/buffercomp.c b/test/buffercomp.c
index 5cc1dbc..12b67fe 100644
--- a/test/buffercomp.c
+++ b/test/buffercomp.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/common.c b/test/common.c
index f989818..40565e5 100644
--- a/test/common.c
+++ b/test/common.c
@@ -30,6 +30,8 @@
* Ran Benita <ran234@gmail.com>
*/
+#include "config.h"
+
#include <limits.h>
#include <fcntl.h>
#include <unistd.h>
diff --git a/test/compose.c b/test/compose.c
index d9f3629..89b0e7e 100644
--- a/test/compose.c
+++ b/test/compose.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include "xkbcommon/xkbcommon-compose.h"
#include "test.h"
diff --git a/test/context.c b/test/context.c
index 8cb0a47..150491b 100644
--- a/test/context.c
+++ b/test/context.c
@@ -23,6 +23,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
+#include "config.h"
+
#include "test.h"
#include "context.h"
diff --git a/test/filecomp.c b/test/filecomp.c
index 39b7ac7..827a19c 100644
--- a/test/filecomp.c
+++ b/test/filecomp.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include "test.h"
static int
diff --git a/test/interactive-evdev.c b/test/interactive-evdev.c
index b0b9e62..edf3919 100644
--- a/test/interactive-evdev.c
+++ b/test/interactive-evdev.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/test/interactive-wayland.c b/test/interactive-wayland.c
index e033728..736d03e 100644
--- a/test/interactive-wayland.c
+++ b/test/interactive-wayland.c
@@ -23,6 +23,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <errno.h>
#include <fcntl.h>
#include <locale.h>
diff --git a/test/interactive-x11.c b/test/interactive-x11.c
index 9829cf3..f279dd0 100644
--- a/test/interactive-x11.c
+++ b/test/interactive-x11.c
@@ -21,13 +21,15 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <locale.h>
+#include <xcb/xkb.h>
+
#include "xkbcommon/xkbcommon-x11.h"
#include "test.h"
-#include <xcb/xkb.h>
-
/*
* Note: This program only handles the core keyboard device for now.
* It should be straigtforward to change struct keyboard to a list of
diff --git a/test/keymap.c b/test/keymap.c
index b736fe1..75b92c1 100644
--- a/test/keymap.c
+++ b/test/keymap.c
@@ -23,6 +23,8 @@
* Author: Mike Blumenkrantz <zmike@osg.samsung.com>
*/
+#include "config.h"
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/keyseq.c b/test/keyseq.c
index 7be8598..adf4de3 100644
--- a/test/keyseq.c
+++ b/test/keyseq.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include "evdev-scancodes.h"
#include "test.h"
diff --git a/test/keysym.c b/test/keysym.c
index e5347dd..2a8ca90 100644
--- a/test/keysym.c
+++ b/test/keysym.c
@@ -20,6 +20,8 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <locale.h>
#include "test.h"
diff --git a/test/log.c b/test/log.c
index 96e2566..4a93a6e 100644
--- a/test/log.c
+++ b/test/log.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include "test.h"
#include "context.h"
diff --git a/test/print-compiled-keymap.c b/test/print-compiled-keymap.c
index 6829eac..64c1915 100644
--- a/test/print-compiled-keymap.c
+++ b/test/print-compiled-keymap.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <unistd.h>
#include "test.h"
diff --git a/test/rmlvo-to-kccgst.c b/test/rmlvo-to-kccgst.c
index 99e5064..11319a4 100644
--- a/test/rmlvo-to-kccgst.c
+++ b/test/rmlvo-to-kccgst.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <unistd.h>
#include <getopt.h>
diff --git a/test/rmlvo-to-keymap.c b/test/rmlvo-to-keymap.c
index c7b5dbd..3a98527 100644
--- a/test/rmlvo-to-keymap.c
+++ b/test/rmlvo-to-keymap.c
@@ -21,6 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
#include <assert.h>
#include <errno.h>
@@ -29,6 +30,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
+
#include "xkbcommon/xkbcommon.h"
static bool print = false;
diff --git a/test/rules-file-includes.c b/test/rules-file-includes.c
index bdeb03a..006449c 100644
--- a/test/rules-file-includes.c
+++ b/test/rules-file-includes.c
@@ -22,6 +22,7 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
#include "test-config.h"
#include "test.h"
diff --git a/test/rules-file.c b/test/rules-file.c
index b32009e..d217ba9 100644
--- a/test/rules-file.c
+++ b/test/rules-file.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include "test.h"
#include "xkbcomp/xkbcomp-priv.h"
#include "xkbcomp/rules.h"
diff --git a/test/rulescomp.c b/test/rulescomp.c
index 67ffcb8..eddf306 100644
--- a/test/rulescomp.c
+++ b/test/rulescomp.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include "evdev-scancodes.h"
#include "test.h"
diff --git a/test/state.c b/test/state.c
index 1f2c75d..3ec7c66 100644
--- a/test/state.c
+++ b/test/state.c
@@ -23,6 +23,8 @@
* Author: Daniel Stone <daniel@fooishbar.org>
*/
+#include "config.h"
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/stringcomp.c b/test/stringcomp.c
index 1a1813b..0388404 100644
--- a/test/stringcomp.c
+++ b/test/stringcomp.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/utf8.c b/test/utf8.c
index 1d1c073..214e356 100644
--- a/test/utf8.c
+++ b/test/utf8.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
diff --git a/test/x11.c b/test/x11.c
index 17e8ad8..00f3a96 100644
--- a/test/x11.c
+++ b/test/x11.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include "test.h"
#include "xkbcommon/xkbcommon-x11.h"
diff --git a/test/x11comp.c b/test/x11comp.c
index 8da2753..5fd064b 100644
--- a/test/x11comp.c
+++ b/test/x11comp.c
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+#include "config.h"
+
#include <stdio.h>
#include <spawn.h>
#include <unistd.h>