File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -531,14 +531,13 @@ struct __te_impl {
531531 _LIBCPP_HIDDEN static __id __get_win32_acp ();
532532# endif
533533
534- # if _LIBCPP_AVAILABILITY_HAS_TE_ENVIRONMENT
535- [[nodiscard]] _LIBCPP_EXPORTED_FROM_ABI static __te_impl __environment ();
534+ [[nodiscard]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_EXPORTED_FROM_ABI static __te_impl __environment ();
536535
537536 template <__id _Id>
538- [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static bool __environment_is () {
537+ [[nodiscard]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_HIDE_FROM_ABI static bool __environment_is () {
539538 return __environment () == _Id;
540539 }
541- # endif
540+
542541# endif
543542
544543 const __te_data* __encoding_rep_ = __text_encoding_data + 1 ;
Original file line number Diff line number Diff line change @@ -107,12 +107,12 @@ public:
107107 return text_encoding (__te_impl::__literal ());
108108 }
109109# if _LIBCPP_HAS_LOCALIZATION && !defined(__ANDROID__)
110- [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static text_encoding environment () {
110+ [[nodiscard]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_HIDE_FROM_ABI static text_encoding environment () {
111111 return text_encoding (__te_impl::__environment ());
112112 };
113113
114114 template <id _Id>
115- [[nodiscard]] _LIBCPP_HIDE_FROM_ABI static bool environment_is () {
115+ [[nodiscard]] _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_HIDE_FROM_ABI static bool environment_is () {
116116 return __te_impl::__environment_is<_Id>();
117117 }
118118# else
Original file line number Diff line number Diff line change @@ -249,6 +249,8 @@ _LIBCPP_HIDDEN __te_impl __te_impl::__get_env_encoding() {
249249#endif // _LIBCPP_WIN32API
250250}
251251
252- __te_impl __te_impl::__environment () { return __te_impl::__get_env_encoding (); }
252+ _LIBCPP_AVAILABILITY_TE_ENVIRONMENT _LIBCPP_EXPORTED_FROM_ABI __te_impl __te_impl::__environment () {
253+ return __te_impl::__get_env_encoding ();
254+ }
253255
254256_LIBCPP_END_NAMESPACE_STD
You can’t perform that action at this time.
0 commit comments