summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcompat/wchar.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c
index c017582..0d53e88 100644
--- a/libgcompat/wchar.c
+++ b/libgcompat/wchar.c
@@ -114,3 +114,14 @@ unsigned long int wcstoul_l(const wchar_t *nptr, wchar_t **endptr,
{
return wcstoul(nptr, endptr, base);
}
+
+/**
+ * Convert a wide-character string to a long int.
+ *
+ * Some day, when musl supports LC_NUMERIC, we can probably remove this.
+ */
+long int wcstol_l(const wchar_t *nptr, wchar_t **endptr, int base,
+ locale_t loc)
+{
+ return wcstol(nptr, endptr, base);
+}