diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-05 23:20:50 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-05 23:20:50 +0200 |
commit | 563a9326598886e03cde94d92f979e68bdad9760 (patch) | |
tree | d378e53fc76d8a00dad20117dba1dc59ad104d09 /common/evdev.c | |
parent | 86efc98a5eab40631f6f02e6cdcfdd871ec08e9a (diff) |
Remove pointless compiler.h
Diffstat (limited to 'common/evdev.c')
-rw-r--r-- | common/evdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/evdev.c b/common/evdev.c index 69c368d..4aff9bc 100644 --- a/common/evdev.c +++ b/common/evdev.c @@ -13,9 +13,10 @@ #error Unsupported platform #endif -#include "compiler.h" #include "evdev.h" +#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1) + int path_is_evdev(const char *path) { static const char prefix[] = "/dev/input/event"; static const size_t prefixlen = STRLEN(prefix); |