summaryrefslogtreecommitdiff
path: root/libevdev/libevdev-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'libevdev/libevdev-util.h')
-rw-r--r--libevdev/libevdev-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libevdev/libevdev-util.h b/libevdev/libevdev-util.h
index 227363c..ddcf5e3 100644
--- a/libevdev/libevdev-util.h
+++ b/libevdev/libevdev-util.h
@@ -28,6 +28,8 @@
#include <string.h>
#include "libevdev-int.h"
+#define unlikely(x) (__builtin_expect(!!(x),0))
+
static inline bool
startswith(const char *str, size_t len, const char *prefix, size_t plen)
{