Squashes compiler warnings about unused functions given this header is
included in multiple files.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
#include <dirent.h>
#if !defined(HAVE_VERSIONSORT) || defined(TEST_VERSIONSORT)
-static int
+static inline int
libinput_strverscmp(const char *l0, const char *r0)
{
const unsigned char *l = (const void *)l0;
/* Defined with libinput_ names for testing from platforms with native functions. */
#ifndef HAVE_VERSIONSORT
-static int
+static inline int
strverscmp(const char *l0, const char *r0)
{
return libinput_strverscmp(l0, r0);
}
-static int
+static inline int
versionsort(const struct dirent **a, const struct dirent **b)
{
return libinput_strverscmp((*a)->d_name, (*b)->d_name);