diff --git a/linker_script.cc b/linker_script.cc index 9cb45396..64ef9564 100644 --- a/linker_script.cc +++ b/linker_script.cc @@ -5,12 +5,14 @@ #include "mold.h" +#include + static thread_local std::string current_file; static std::vector tokenize(std::string_view input) { std::vector vec; while (!input.empty()) { - if (input[0] == ' ' || input[0] == '\t' || input[0] == '\n') { + if (isspace(input[0])) { input = input.substr(1); continue; }