This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 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: Built XWin on mingw - with patches


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/


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