[libcxx-commits] [libcxx] a0d40a5 - [libcxx] Add some missing xlocale wrapper functions for OpenBSD
Brad Smith via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 21 17:16:11 PDT 2022
Author: Brad Smith
Date: 2022-04-21T20:00:59-04:00
New Revision: a0d40a579a6f27a1b1cdb7d68b2145e332c02c4e
URL: https://github.com/llvm/llvm-project/commit/a0d40a579a6f27a1b1cdb7d68b2145e332c02c4e
DIFF: https://github.com/llvm/llvm-project/commit/a0d40a579a6f27a1b1cdb7d68b2145e332c02c4e.diff
LOG: [libcxx] Add some missing xlocale wrapper functions for OpenBSD
Reviewed By: Mordante
Differential Revision: https://reviews.llvm.org/D122861
Added:
Modified:
libcxx/include/__support/openbsd/xlocale.h
Removed:
################################################################################
diff --git a/libcxx/include/__support/openbsd/xlocale.h b/libcxx/include/__support/openbsd/xlocale.h
index 49d66fde1e8ed..f3917f333fb37 100644
--- a/libcxx/include/__support/openbsd/xlocale.h
+++ b/libcxx/include/__support/openbsd/xlocale.h
@@ -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
More information about the libcxx-commits
mailing list