diff --git a/RedPandaIDE/utils.cpp b/RedPandaIDE/utils.cpp index ef86e54f..351a1156 100644 --- a/RedPandaIDE/utils.cpp +++ b/RedPandaIDE/utils.cpp @@ -265,8 +265,10 @@ void resetCppParser(std::shared_ptr parser, int compilerSetIndex) compilerSetIndex=pSettings->compilerSets().defaultIndex(); } Settings::PCompilerSet compilerSet = pSettings->compilerSets().getSet(compilerSetIndex); +#ifdef ENABLE_SDCC if (compilerSet && compilerSet->compilerType()==CompilerType::SDCC) parser->setLanguage(ParserLanguage::SDCC); +#endif parser->clearIncludePaths(); bool isCpp = parser->language()==ParserLanguage::CPlusPlus; if (compilerSet) {