Skip to content

Commit

Permalink
Prevent macro expansion of isspecial() on FreeBSD. Fixes: #3190 (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
foggel committed Jul 24, 2020
1 parent 80dea3a commit 55c6d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion io/TextReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ void TextReader::parseUnquotedHeader(const std::string& header)
{
// Scan string for some character not a number or letter.
for (size_t i = 0; i < header.size(); ++i)
if (isspecial(header[i]))
// Parenthesis around special to prevent macro expansion, see #3190
if ((isspecial)(header[i]))
{
m_separator = header[i];
break;
Expand Down

0 comments on commit 55c6d06

Please sign in to comment.