This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] include _mingw.h in stddef.h
- From: rridge at csclub dot uwaterloo dot ca (Ross Ridge)
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 18 Sep 2009 10:44:28 -0400 (EDT)
- Subject: Re: [PATCH] include _mingw.h in stddef.h
Dave Korn writes:
> Well, yes, there's no reason why not, and if the MSVC compiler supplies
>all these types built in I don't see why GCC shouldn't do just the same.
The MinGW port of GCC isn't ment to be an MSVC++ clone, so you do really
need better justification than just "Microsoft does it". There are lots
of things the Micrsoft compiler does that GCC will never do. I don't
think it's unreasonable for GCC to differ here, especially when there
is a standard way of getting access to these types that works with
both compilers.
If support is added to GCC for these Microsoft types, I think it should
be as real types. That would make the types fully compatibile with MSC.
The macros defined in _mingw.h are really only ment for the private use
of the MinGW runtime headers, and having GCC include it automatically
would be a misuse of the header.
Ross Ridge