This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] include _mingw.h in stddef.h


On Thu, 17 Sep 2009, Dave Korn wrote:

>   A -isystem option might be another way to handle it, if always #including
> _mingw.h everywhere is the right way to go.

If you want to preinclude a header for all compilations, see my patch 
<http://gcc.gnu.org/ml/gcc-patches/2009-04/msg01444.html>.  You need to be 
very careful when doing so about what goes in such a header, because it's 
valid for source files to define feature test macros before including 
system headers, but such feature test macros will be defined after such 
preinclusion, so the preincluded header mustn't depend on feature test 
macros.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]