Remove pointless compiler.h

This commit is contained in:
Kenny Levinsen 2020-08-05 23:20:50 +02:00
parent 86efc98a5e
commit 563a932659
5 changed files with 20 additions and 27 deletions

View file

@ -6,7 +6,6 @@
#include <sys/sysmacros.h>
#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);
}

View file

@ -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);