Skip to content

Commit 2a90d59

Browse files
[libcxx] locale.cpp: Move build_name helper into unnamed namespace (#92461)
Fix linkage of `build_name`; it is not supposed to have external linkage.
1 parent 60fe1e9 commit 2a90d59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/src/locale.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ inline constexpr size_t countof(const T* const begin, const T* const end) {
102102
return static_cast<size_t>(end - begin);
103103
}
104104

105-
} // namespace
106-
107105
string build_name(const string& other, const string& one, locale::category c) {
108106
if (other == "*" || one == "*")
109107
return "*";
@@ -115,6 +113,8 @@ string build_name(const string& other, const string& one, locale::category c) {
115113
return "*";
116114
}
117115

116+
} // namespace
117+
118118
const locale::category locale::none;
119119
const locale::category locale::collate;
120120
const locale::category locale::ctype;

0 commit comments

Comments
 (0)