mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-10 02:08:20 +02:00
Fall back to plain strtod(3) on NetBSD and OpenBSD
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1490>
This commit is contained in:
parent
3cfc22b8ff
commit
b577a77333
1 changed files with 4 additions and 0 deletions
|
|
@ -297,7 +297,11 @@ safe_atod(const char *str, double *val)
|
|||
return false;
|
||||
|
||||
errno = 0;
|
||||
#if !defined(__NetBSD__) && !defined(__OpenBSD__)
|
||||
v = strtod_l(str, &endptr, c_locale);
|
||||
#else
|
||||
v = strtod(str, &endptr);
|
||||
#endif
|
||||
freelocale(c_locale);
|
||||
#else
|
||||
/* No locale support in provided libc, assume it already uses '.' */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue