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:
Volker Schlecht 2026-06-07 13:15:49 +00:00
parent 3cfc22b8ff
commit b577a77333

View file

@ -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 '.' */