Keep standard includes when building C++ modules

svn path=/trunk/; revision=29184
This commit is contained in:
Hervé Poussineau 2007-09-24 12:27:00 +00:00
parent 18bb1da6d2
commit 9fea5a34a6

View file

@ -1971,12 +1971,13 @@ MingwModuleHandler::GenerateOtherMacros ()
} }
else else
{ {
globalCflags += " -nostdinc";
if ( module.cplusplus ) if ( module.cplusplus )
{ {
// HACK: use host headers when building C++ // HACK: use host headers when building C++
globalCflags += " $(HOST_CPPFLAGS)"; globalCflags += " $(HOST_CPPFLAGS)";
} }
else
globalCflags += " -nostdinc";
} }
// Always force disabling of sibling calls optimisation for GCC // Always force disabling of sibling calls optimisation for GCC