diff --git a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp index a66dc08acef..460eaefb2c5 100644 --- a/reactos/tools/rbuild/backend/mingw/modulehandler.cpp +++ b/reactos/tools/rbuild/backend/mingw/modulehandler.cpp @@ -1971,12 +1971,13 @@ MingwModuleHandler::GenerateOtherMacros () } else { - globalCflags += " -nostdinc"; if ( module.cplusplus ) { // HACK: use host headers when building C++ globalCflags += " $(HOST_CPPFLAGS)"; } + else + globalCflags += " -nostdinc"; } // Always force disabling of sibling calls optimisation for GCC