diff options
Diffstat (limited to 'tools/tools-common.h')
-rw-r--r-- | tools/tools-common.h | 2 |
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, |