summaryrefslogtreecommitdiff
path: root/test/litest.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/litest.h')
-rw-r--r--test/litest.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/litest.h b/test/litest.h
index 7ac54f3e..baba5cbb 100644
--- a/test/litest.h
+++ b/test/litest.h
@@ -35,6 +35,10 @@
#include <libinput.h>
#include <math.h>
+#ifndef ck_assert_notnull
+#define ck_assert_notnull(ptr) ck_assert_ptr_ne(ptr, NULL)
+#endif
+
#include "check-double-macros.h"
#include "libinput-private-config.h"
@@ -981,10 +985,6 @@ litest_semi_mt_touch_up(struct litest_device *d,
struct litest_semi_mt *semi_mt,
unsigned int slot);
-#ifndef ck_assert_notnull
-#define ck_assert_notnull(ptr) ck_assert_ptr_ne(ptr, NULL)
-#endif
-
static inline void
litest_enable_tap(struct libinput_device *device)
{
@@ -1259,7 +1259,8 @@ litest_send_file(int sock, int fd)
return write(sock, buf, n);
}
-static inline int litest_slot_count(struct litest_device *dev)
+static inline int
+litest_slot_count(struct litest_device *dev)
{
if (dev->which == LITEST_ALPS_3FG)
return 2;