diff --git a/externals/simplecpp/simplecpp.cpp b/externals/simplecpp/simplecpp.cpp index aeaf0a0f3..9068de106 100644 --- a/externals/simplecpp/simplecpp.cpp +++ b/externals/simplecpp/simplecpp.cpp @@ -296,7 +296,7 @@ static unsigned char peekChar(std::istream &istr, unsigned int bom) { static void ungetChar(std::istream &istr, unsigned int bom) { istr.unget(); - if (bom != 0) + if (bom == 0xfeff || bom == 0xfffe) istr.unget(); }