blob: f83d2d4458c19ebb489670eac205ea46db0e325c [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001these macro'd away functions don't exist in musl (yet)
2diff --git a/include/wx/xlocale.h b/include/wx/xlocale.h
3index c433d25..3ab9d84 100644
4--- a/include/wx/xlocale.h
5+++ b/include/wx/xlocale.h
6@@ -33,6 +33,26 @@
7 #include "wx/crt.h" // Includes wx/chartype.h, wx/wxcrt.h(wx/string.h)
8 #include "wx/intl.h" // wxLanguage
9
10+#ifndef strtol_l
11+#define strtol_l(s, p, base, l) strtol(s, p, base)
12+#endif
13+
14+#ifndef strtoul_l
15+#define strtoul_l(s, p, base, l) strtoul(s, p, base)
16+#endif
17+
18+#ifndef wcstod_l
19+#define wcstod_l(s, p, l) wcstod(s, p)
20+#endif
21+
22+#ifndef wcstol_l
23+#define wcstol_l(s, p, base, l) wcstol(s, p, base)
24+#endif
25+
26+#ifndef wcstoul_l
27+#define wcstoul_l(s, p, base, l) wcstoul(s, p, base)
28+#endif
29+
30 // The platform-specific locale type
31 // If wxXLocale_t is not defined, then only "C" locale support is provided
32 #ifdef wxHAS_XLOCALE_SUPPORT