Re: [RFA] defs.h _WIN32 defined by Win98, too

Eli Zaretskii
2001-08-01T01:49:00Z

On Tue, 31 Jul 2001, Keith Seitz wrote:

> As a result of this change:
>
> 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
>
> * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
> (SLASH_STRING): Remove unised definitions.
> * config/i386/xm-cygwin.h: Likewise.
>
> Win98 no longer works under cygwin:
>
> (gdb) file gdb.exe
> Loading symbols from gdb.exe...done
> (gdb) run
> `/home/keiths/sources/insight/gdb\gdb.exe' has disappeared; keeping its
> symbols.
>
> Starting program: /home/keiths/sources/insight/gdb\gdb.exe
> Error creating process /home/keiths/sources/insight/gdb\gdb.exe (error 2)
> [often crashes here]
>
> Apparently, Win98 defines _WIN32 somewhere...

So perhaps there's a bug in Cygwin ;-)

Anyway, didn't Chris say that _WIN32 should be removed from GDB
everywhere? If that's so, the ifdef _WIN32 should be simply deleted,
instead of lumping more ifdefs on top of it. For SLASH_STRING in
particular, this shouldn't be a problem at all, since Windows supports
forward slashes as well as backslashes, even if GDB is built with MS
run-time DLLs.