From 563a9326598886e03cde94d92f979e68bdad9760 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Wed, 5 Aug 2020 23:20:50 +0200 Subject: Remove pointless compiler.h --- common/drm.c | 3 ++- common/evdev.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/drm.c b/common/drm.c index 684a925..8be2c62 100644 --- a/common/drm.c +++ b/common/drm.c @@ -6,7 +6,6 @@ #include #endif -#include "compiler.h" #include "drm.h" // From libdrm @@ -15,6 +14,8 @@ #define DRM_IOCTL_SET_MASTER DRM_IO(0x1e) #define DRM_IOCTL_DROP_MASTER DRM_IO(0x1f) +#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1) + int drm_set_master(int fd) { return ioctl(fd, DRM_IOCTL_SET_MASTER, 0); } 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); -- cgit v1.2.3