This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] libiberty/physmem support for w32
On 27-Feb-2003, Kaveh R. Ghazi <ghazi at caip dot rutgers dot edu> wrote:
> We rely on _WIN32 in a few other places in libiberty, so I think it's
> ok to do so here. I.e. no separate autoconf magic necessary. I'm not
> sure what you meant by "cygwin doesn't define _WIN32 by default".
> When you say "by default" are there some cases or conditions where
> cygwin will define _WIN32? If so, perhaps we need to add !__CYGWIN__ ?
Cygwin will define _WIN32 (and will undefine __CYGWIN__) if you use the
`-mno-cygwin' option. But in that case it is effectively a cross-compiler
to i*86-pc-mingw. It should be OK to test for _WIN32 here.
--
Fergus Henderson <fjh at cs dot mu dot oz dot au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.