This is the mail archive of the
mailing list for the Cygwin project.
Re: I: gcc ... -U_WIN32 ... may cause problems
- To: "MCzapski at openplus dot com dot au" <MCzapski at openplus dot com dot au>
- Subject: Re: I: gcc ... -U_WIN32 ... may cause problems
- From: michael at weiser dot saale-net dot de (Michael Weiser)
- Date: Fri, 28 Aug 1998 18:22:49 GMT
- Cc: gnu-win32 at cygnus dot com
- References: <01BDD20D.B63709B0.MCzapski@openplus.com.au>
Hello Michael, you wrote:
>Cygwin32 but unix-specific daemon code is compiled instead, for example. To
>avoid coding #if defined construct as shown I decided to undefine _WIN32 when
>compiling in Cygwin32 environment by using a command line of a form "gcc ...
>-U_WIN32 ...". Before I did that the application worked fine however as soon
Wouldn't it be cleaner and easier to code something like
#if defined __unix__ || defined __CYGWIN32__
#if defined _WIN32 && !defined __CYGWIN32__
around parts of your program that should behave like on unix under
cygwin? IMHO that wouldn't be more effort than solving your current
problem and all the others that will arise if something in the headers
or the cygwin tools gets changed.
For help on using this list (especially unsubscribing), send a message to
"email@example.com" with one line of text: "help".