[libcxx-commits] [libcxx] [libc++] Remove dead code from the locale base API and support code (PR #89070)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 4 10:34:14 PDT 2024


================
@@ -9,14 +9,10 @@
 #ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_NEWLIB_H
 #define _LIBCPP___LOCALE_LOCALE_BASE_API_NEWLIB_H
 
-#if defined(_NEWLIB_VERSION)
-
-#  if !defined(__NEWLIB__) || __NEWLIB__ < 2 || __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5
-#    include <__support/xlocale/__nop_locale_mgmt.h>
-#    include <__support/xlocale/__posix_l_fallback.h>
-#    include <__support/xlocale/__strtonum_fallback.h>
-#  endif
-
-#endif // _NEWLIB_VERSION
+#if !defined(__NEWLIB__) || __NEWLIB__ < 2 || __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 5
+#  include <__support/xlocale/__nop_locale_mgmt.h>
+#  include <__support/xlocale/__posix_l_fallback.h>
+#  include <__support/xlocale/__strtonum_fallback.h>
+#endif
----------------
ldionne wrote:

I think we can just remove this since that's a really old version of newlib, and we don't support anything that old. We actually don't support newlib itself, we only support picolibc which is built on top of it.

https://github.com/llvm/llvm-project/pull/89070


More information about the libcxx-commits mailing list