diff --git a/simplecpp.cpp b/simplecpp.cpp index 2316c42b..625674dd 100755 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -3249,6 +3249,8 @@ std::map simplecpp::load(const simplecpp::To if (!f.is_open()) continue; f.close(); + if (ret.find(header2) != ret.end()) + continue; TokenList *tokens = new TokenList(header2, filenames, outputList); if (dui.removeComments)