summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/wchar.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c
index 0d53e88..930cc7c 100644
--- a/libgcompat/wchar.c
+++ b/libgcompat/wchar.c
@@ -125,3 +125,13 @@ long int wcstol_l(const wchar_t *nptr, wchar_t **endptr, int base,
{
return wcstol(nptr, endptr, base);
}
+
+/**
+ * Convert a wide-character string to a double.
+ *
+ * Some day, when musl supports LC_NUMERIC, we can probably remove this.
+ */
+double wcstod_l(const wchar_t *nptr, wchar_t **endptr, locale_t loc)
+{
+ return wcstod(nptr, endptr);
+}