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 09/17/2009 03:22 PM, Ozkan Sezer wrote:
On Thu, Sep 17, 2009 at 4:19 PM, Joseph S. Myers
<joseph@codesourcery.com>  wrote:
On Thu, 17 Sep 2009, Ozkan Sezer wrote:

Without the following patch, the above example shall not compile for
mingw* because certain types such as __int64 in the above example
(and some definitions) which are provided by the M$ compiler, are not
available via including gcc-provided stddef.h.  They are, however,

Provided by the MS compiler as built-in types (so available without *any* headers being included) or provided by its stddef.h header?

As built-in types, yes. Not via a stddef.h header.

Then, "__int64 x;" ought to work too, even without the #include. You would want to include _mingw.h automatically on mingw targets; I don't know if this makes sense, I'll let people more knowledgeable about mingw answer.


Paolo


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