Don't hide windows.h in files that using ege lib

This commit is contained in:
Roy Qu 2023-07-03 07:11:51 +08:00
parent 48e6dbc024
commit 9e5fd90196
1 changed files with 2 additions and 2 deletions

View File

@ -337,8 +337,8 @@ void resetCppParser(std::shared_ptr<CppParser> parser, int compilerSetIndex)
for (QString define:compilerSet->defines(parser->language()==ParserLanguage::CPlusPlus)) { for (QString define:compilerSet->defines(parser->language()==ParserLanguage::CPlusPlus)) {
parser->addHardDefineByLine(define); parser->addHardDefineByLine(define);
} }
// add a Red Pand C++ 's own macro // // add a Red Pand C++ 's own macro
parser->addHardDefineByLine("#define EGE_FOR_AUTO_CODE_COMPLETETION_ONLY"); // parser->addHardDefineByLine("#define EGE_FOR_AUTO_CODE_COMPLETETION_ONLY");
// add C/C++ default macro // add C/C++ default macro
parser->addHardDefineByLine("#define __FILE__ 1"); parser->addHardDefineByLine("#define __FILE__ 1");
parser->addHardDefineByLine("#define __LINE__ 1"); parser->addHardDefineByLine("#define __LINE__ 1");