File tree Expand file tree Collapse file tree 5 files changed +27
-1
lines changed Expand file tree Collapse file tree 5 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ set(files
529529 __locale_dir/support/freebsd.h
530530 __locale_dir/support/fuchsia.h
531531 __locale_dir/support/linux.h
532+ __locale_dir/support/netbsd.h
532533 __locale_dir/support/no_locale/characters.h
533534 __locale_dir/support/no_locale/strtonum.h
534535 __locale_dir/support/windows.h
Original file line number Diff line number Diff line change 115115# include < __locale_dir/support/apple.h>
116116# elif defined(__FreeBSD__)
117117# include < __locale_dir/support/freebsd.h>
118+ # elif defined(__NetBSD__)
119+ # include < __locale_dir/support/netbsd.h>
118120# elif defined(_LIBCPP_MSVCRT_LIKE)
119121# include < __locale_dir/support/windows.h>
120122# elif defined(__Fuchsia__)
Original file line number Diff line number Diff line change 2424# include < wctype.h>
2525#endif
2626
27- #include < xlocale.h>
27+ #if __has_include(<xlocale.h>)
28+ # include < xlocale.h>
29+ #endif
2830
2931#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
3032# pragma GCC system_header
Original file line number Diff line number Diff line change 1+ //===-----------------------------------------------------------------------===//
2+ //
3+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+ // See https://llvm.org/LICENSE.txt for license information.
5+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+ //
7+ //===----------------------------------------------------------------------===//
8+
9+ #ifndef _LIBCPP___LOCALE_DIR_SUPPORT_NETBSD_H
10+ #define _LIBCPP___LOCALE_DIR_SUPPORT_NETBSD_H
11+
12+ #include <__config>
13+
14+ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER )
15+ # pragma GCC system_header
16+ #endif
17+
18+ #include <__locale_dir/support/bsd_like.h>
19+
20+ #endif // _LIBCPP___LOCALE_DIR_SUPPORT_NETBSD_H
Original file line number Diff line number Diff line change @@ -1587,6 +1587,7 @@ module std [system] {
15871587 textual header "__locale_dir/support/freebsd.h"
15881588 textual header "__locale_dir/support/fuchsia.h"
15891589 textual header "__locale_dir/support/linux.h"
1590+ textual header "__locale_dir/support/netbsd.h"
15901591 textual header "__locale_dir/support/no_locale/characters.h"
15911592 textual header "__locale_dir/support/no_locale/strtonum.h"
15921593 textual header "__locale_dir/support/windows.h"
You can’t perform that action at this time.
0 commit comments