This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


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

Re: gcc 2.95.3-1 and -mwin32



----- Original Message -----
From: "Trevor Forbes" <trevorforbes@ozemail.com.au>


>
> ----- Original Message -----
> From: "Christopher Faylor" <cgf@redhat.com>
>
< snip> gcc pre release announcement
>
> I also agree with /usr/include/w32api inclusion therefore I am more
than
> happy with this change.
>
> However, I think w32api should be neutral with regards to WIN32
defines.
>
> For example, I think the following should be "removed" and allow WIN32
to be
> defined/not defined in gcc or (my preference) defined in the software
being
> ported:
>
> w32api/windef.h
>
> #ifndef WIN32
> #define WIN32
> #endif
> #ifndef _WIN32
> #define _WIN32
> #endif
>
> Comments?

I don't think the software being ported should ever define WIN32 itself.
It'd be like defining glibc_version (or whatever that value is called)
yourself.

Setting it for gcc is one thing, and quite appropriate. As far as w32api
goes, I haven't investigated and thus won't comment..

Rob


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