Skip to content

Commit cfde4fb

Browse files
authored
[libc++] Remove obsolete Solaris and Newlib support for locales (#113721)
The solaris header file doesn't even exist, so that's definitely dead code. The newlib header is empty, which means that localization can't work on that platform. If someone is using libc++ with Newlib, they must be providing LIBCXX_HAS_NO_LOCALIZATION today for anything to work, so that header is basically dead code as well.
1 parent 1540f77 commit cfde4fb

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

libcxx/include/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ set(files
497497
__locale_dir/locale_base_api/fuchsia.h
498498
__locale_dir/locale_base_api/ibm.h
499499
__locale_dir/locale_base_api/musl.h
500-
__locale_dir/locale_base_api/newlib.h
501500
__locale_dir/locale_base_api/openbsd.h
502501
__locale_dir/locale_base_api/win32.h
503502
__locale_dir/locale_guard.h

libcxx/include/__locale_dir/locale_base_api.h

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
# include <__locale_dir/locale_base_api/ibm.h>
1616
#elif defined(__ANDROID__)
1717
# include <__locale_dir/locale_base_api/android.h>
18-
#elif defined(__sun__)
19-
# include <__locale_dir/locale_base_api/solaris.h>
20-
#elif defined(_NEWLIB_VERSION)
21-
# include <__locale_dir/locale_base_api/newlib.h>
2218
#elif defined(__OpenBSD__)
2319
# include <__locale_dir/locale_base_api/openbsd.h>
2420
#elif defined(__Fuchsia__)

libcxx/include/__locale_dir/locale_base_api/newlib.h

-12
This file was deleted.

libcxx/include/module.modulemap

-1
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,6 @@ module std [system] {
14511451
textual header "__locale_dir/locale_base_api/fuchsia.h"
14521452
textual header "__locale_dir/locale_base_api/ibm.h"
14531453
textual header "__locale_dir/locale_base_api/musl.h"
1454-
textual header "__locale_dir/locale_base_api/newlib.h"
14551454
textual header "__locale_dir/locale_base_api/openbsd.h"
14561455
textual header "__locale_dir/locale_base_api/win32.h"
14571456
}

0 commit comments

Comments
 (0)