diff --git a/src/evdev.h b/src/evdev.h index 1a42bd8e..dde0f1b6 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -30,12 +30,6 @@ #include "libinput-private.h" -static inline void * -zalloc(size_t size) -{ - return calloc(1, size); -} - #define MAX_SLOTS 16 enum evdev_event_type { diff --git a/src/libinput-util.h b/src/libinput-util.h index a9efb499..45549e05 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -96,4 +96,10 @@ li_fixed_from_double(double d) #define LIBINPUT_EXPORT __attribute__ ((visibility("default"))) +static inline void * +zalloc(size_t size) +{ + return calloc(1, size); +} + #endif /* LIBINPUT_UTIL_H */