From 4c77dc4b8b319857d95f72748fece1631a91354e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 28 Sep 2024 11:12:18 +0200 Subject: [PATCH] replace 'isspace' with 'std::isspace' --- simplecpp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simplecpp.cpp b/simplecpp.cpp index 37fdc61..0201f6c 100755 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -886,7 +886,7 @@ void simplecpp::TokenList::readfile(Stream &stream, const std::string &filename, } if (prefix.empty()) - push_back(new Token(s, location, isspace(stream.peekChar()))); // push string without newlines + push_back(new Token(s, location, std::isspace(stream.peekChar()))); // push string without newlines else back()->setstr(prefix + s); @@ -916,7 +916,7 @@ void simplecpp::TokenList::readfile(Stream &stream, const std::string &filename, } } - push_back(new Token(currentToken, location, isspace(stream.peekChar()))); + push_back(new Token(currentToken, location, std::isspace(stream.peekChar()))); if (multiline) location.col += currentToken.size();