llvm-project
fda7373d - [libc++] Guard <codecvt> contents on _LIBCPP_HAS_LOCALIZATION (#129112)

Commit
331 days ago
[libc++] Guard <codecvt> contents on _LIBCPP_HAS_LOCALIZATION (#129112) The codecvt class is defined in <locale> and the contents of the <codecvt> header don't work when localization is disabled. Without this guard, builds with localization disabled that happen to include <codecvt> could be broken because they would try to include <__locale>, which ends up trying to include the locale base API and eventually platform headers like <xlocale.h> that may not exist.
Author
Parents
Loading