forked from OSchip/llvm-project
[libcxx] Add some missing xlocale wrapper functions for OpenBSD
Reviewed By: Mordante Differential Revision: https://reviews.llvm.org/D122861
This commit is contained in:
parent
9be90748f1
commit
a0d40a579a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue