[libcxx-commits] [libcxx] [libcxx][c++26] 2937R0: Freestanding: Remove strtok (PR #146290)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 30 00:54:27 PDT 2025
https://github.com/philnik777 requested changes to this pull request.
I don't think this is the right approach here. `_LIBCPP_USING_IF_EXISTS` is there to make `std::strtok` available exactly when `::strtok` is available, which seems like a _much_ more useful way of handling this than arbitrarily disabling it because `-ffreestanding` was set. Generally, I don't think we should check for `-ffreestanding` directly in the headers at any point.
https://github.com/llvm/llvm-project/pull/146290
More information about the libcxx-commits
mailing list