[libcxx] Add some missing xlocale wrapper functions for OpenBSD

Reviewed By: Mordante

Differential Revision: https://reviews.llvm.org/D122861
This commit is contained in:
Brad Smith 2022-04-21 20:00:59 -04:00
parent 9be90748f1
commit a0d40a579a
1 changed files with 20 additions and 0 deletions

View File

@ -16,4 +16,24 @@
#include <ctype.h>
#include <cwctype>
#ifdef __cplusplus
extern "C" {
#endif
inline _LIBCPP_HIDE_FROM_ABI long
strtol_l(const char *nptr, char **endptr, int base, locale_t) {
return ::strtol(nptr, endptr, base);
}
inline _LIBCPP_HIDE_FROM_ABI unsigned long
strtoul_l(const char *nptr, char **endptr, int base, locale_t) {
return ::strtoul(nptr, endptr, base);
}
#ifdef __cplusplus
}
#endif
#endif