aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-01 09:46:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-01 09:46:24 +0000
commit69c3e744983e37662fa7b4f61482fb1d142e257c (patch)
treec32f324f64bd0a581a14853b6bf638fe9d2125c0 /wayland.c
parentterm: don't enable ptmx FDM callback until Wayland window has been configured (diff)
util.h: new header file defining commonly used macros
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/wayland.c b/wayland.c
index 5619c7e6..23ccbb8e 100644
--- a/wayland.c
+++ b/wayland.c
@@ -28,10 +28,7 @@
#include "input.h"
#include "render.h"
#include "selection.h"
-
-#define ALEN(v) (sizeof(v) / sizeof(v[0]))
-#define min(x, y) ((x) < (y) ? (x) : (y))
-#define max(x, y) ((x) > (y) ? (x) : (y))
+#include "util.h"
static bool wayl_reload_cursor_theme(
struct wayland *wayl, struct terminal *term);