[libcxx-commits] [PATCH] D97051: [SystemZ][z/OS] Missing non-posix functions libc++

Zibi Sarbino via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 4 07:25:44 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG53c8587dcdbc: [SystemZ][z/OS] Missing non-posix functions libc++ (authored by muiez, committed by zibi).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97051/new/

https://reviews.llvm.org/D97051

Files:
  libcxx/include/__support/ibm/xlocale.h


Index: libcxx/include/__support/ibm/xlocale.h
===================================================================
--- libcxx/include/__support/ibm/xlocale.h
+++ libcxx/include/__support/ibm/xlocale.h
@@ -229,21 +229,37 @@
     int __base, locale_t locale) {
   return strtoll(__nptr, __endptr, __base);
 }
+
 static inline
 long strtol_l(const char *__nptr, char **__endptr,
     int __base, locale_t locale) {
   return strtol(__nptr, __endptr, __base);
 }
+
+static inline
+double strtod_l(const char *__nptr, char **__endptr,
+    locale_t locale) {
+  return strtod(__nptr, __endptr);
+}
+
+static inline
+float strtof_l(const char *__nptr, char **__endptr,
+    locale_t locale) {
+  return strtof(__nptr, __endptr);
+}
+
 static inline
 long double strtold_l(const char *__nptr, char **__endptr,
     locale_t locale) {
   return strtold(__nptr, __endptr);
 }
+
 static inline
 unsigned long long strtoull_l(const char *__nptr, char **__endptr,
     int __base, locale_t locale) {
   return strtoull(__nptr, __endptr, __base);
 }
+
 static inline
 unsigned long strtoul_l(const char *__nptr, char **__endptr,
     int __base, locale_t locale) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97051.328168.patch
Type: text/x-patch
Size: 1151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210304/ebcfd49d/attachment.bin>


More information about the libcxx-commits mailing list