[libcxx-commits] [PATCH] D58961: Remove `static` from declarations in support/musl/xlocale.h

Cág via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 5 04:42:54 PST 2019


ca6c created this revision.
ca6c added a project: libc++.
Herald added subscribers: libcxx-commits, jdoerfert, ldionne.

libc++ fails to build with

  LIBCXX_HAS_MUSL_LIBC=ON

complaining about static declarations.  Removing it helps.


Repository:
  rCXX libc++

https://reviews.llvm.org/D58961

Files:
  include/support/musl/xlocale.h


Index: include/support/musl/xlocale.h
===================================================================
--- include/support/musl/xlocale.h
+++ include/support/musl/xlocale.h
@@ -25,28 +25,28 @@
 extern "C" {
 #endif
 
-static inline long long strtoll_l(const char *nptr, char **endptr, int base,
+inline long long strtoll_l(const char *nptr, char **endptr, int base,
                                   locale_t) {
   return strtoll(nptr, endptr, base);
 }
 
-static inline unsigned long long strtoull_l(const char *nptr, char **endptr,
+inline unsigned long long strtoull_l(const char *nptr, char **endptr,
                                             int base, locale_t) {
   return strtoull(nptr, endptr, base);
 }
 
-static inline long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr,
+inline long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr,
                                   int base, locale_t) {
   return wcstoll(nptr, endptr, base);
 }
 
-static inline unsigned long long wcstoull_l(const wchar_t *nptr,
+inline unsigned long long wcstoull_l(const wchar_t *nptr,
                                             wchar_t **endptr, int base,
                                             locale_t) {
   return wcstoull(nptr, endptr, base);
 }
 
-static inline long double wcstold_l(const wchar_t *nptr, wchar_t **endptr,
+inline long double wcstold_l(const wchar_t *nptr, wchar_t **endptr,
                                     locale_t) {
   return wcstold(nptr, endptr);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58961.189301.patch
Type: text/x-patch
Size: 1493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190305/019a98f5/attachment.bin>


More information about the libcxx-commits mailing list