mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
libinput: update to version 1.7.3 and use libudev-fbsd
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -1,22 +1,38 @@
|
||||
--- a/src/libinput-util.c
|
||||
+++ b/src/libinput-util.c
|
||||
@@ -216,18 +216,10 @@ parse_mouse_wheel_click_angle_property(c
|
||||
double
|
||||
parse_trackpoint_accel_property(const char *prop)
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <ctype.h>
|
||||
-#include <locale.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
--- a/src/libinput-util.h
|
||||
+++ b/src/libinput-util.h
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
-#include <locale.h>
|
||||
#include <math.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
@@ -448,16 +447,8 @@ safe_atod(const char *str, double *val)
|
||||
{
|
||||
char *endptr;
|
||||
double v;
|
||||
- locale_t c_locale;
|
||||
double accel;
|
||||
char *endp;
|
||||
|
||||
- /* Create a "C" locale to force strtod to use '.' as separator */
|
||||
- c_locale = newlocale(LC_NUMERIC_MASK, "C", (locale_t)0);
|
||||
- if (c_locale == (locale_t)0)
|
||||
- return 0.0;
|
||||
-
|
||||
- accel = strtod_l(prop, &endp, c_locale);
|
||||
- return false;
|
||||
-
|
||||
- errno = 0;
|
||||
- v = strtod_l(str, &endptr, c_locale);
|
||||
- freelocale(c_locale);
|
||||
+ accel = strtod(prop, &endp);
|
||||
|
||||
if (*endp != '\0')
|
||||
return 0.0;
|
||||
+ v = strtod(str, &endptr);
|
||||
if (errno > 0)
|
||||
return false;
|
||||
if (str == endptr)
|
||||
|
||||
Reference in New Issue
Block a user