Built XWin on mingw - with patches

Jon TURNEY jon.turney@dronecode.org.uk
Wed Nov 9 18:46:00 GMT 2011


On 07/11/2011 19:36, Charles Wilson wrote:
> On 11/7/2011 1:10 PM, Jon TURNEY wrote:
>> I see what you are trying to do here, but I'm not sure it actually adds
>> any clarity.
>>
>> I think I'd just prefer to assume the knowledge that WIN32 and CYGWIN
>> are mutually exclusive, so '#if defined(WIN32)&&  !defined(__CYGWIN__)'
>> can just be written '#ifdef WIN32'
>
> But this isn't true if you ever #include any of the w32api headers. Then
> you get WIN32 defined, even on cygwin...

True.  I guess what I meant to say is that there isn't any compiler which 
defines both WIN32 and CYGWIN (I hope :-)).

Any portable code which includes w32api headers before checking if WIN32 is 
defined isn't going to be very portable :-)

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list