summaryrefslogtreecommitdiff
path: root/tools/tools-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tools-common.h')
-rw-r--r--tools/tools-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tools-common.h b/tools/tools-common.h
index bc6fa38..780720a 100644
--- a/tools/tools-common.h
+++ b/tools/tools-common.h
@@ -34,6 +34,8 @@
#include "xkbcommon/xkbcommon.h"
#include "xkbcommon/xkbcommon-compose.h"
+#define ARRAY_SIZE(arr) ((sizeof(arr) / sizeof(*(arr))))
+
void
tools_print_keycode_state(struct xkb_state *state,
struct xkb_compose_state *compose_state,