mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 03:30:14 +01:00
Define the versionsort overrides as inlines
Squashes compiler warnings about unused functions given this header is included in multiple files. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
833e49ce01
commit
047557b7f0
1 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@
|
|||
#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;
|
||||
|
|
@ -65,13 +65,13 @@ libinput_strverscmp(const char *l0, const char *r0)
|
|||
/* 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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue