public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* _WIN32?
@ 2001-04-17 14:50 Andrew Cagney
  2001-04-17 14:59 ` _WIN32? Mo DeJong
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Andrew Cagney @ 2001-04-17 14:50 UTC (permalink / raw)
  To: GDB Discussion

Hello,

utils.c contains:

#if !defined (MPW) && !defined (_WIN32)
      /* No termcap under MPW, although might be cool to do something
         by looking at worksheet or console window sizes. */
      /* Initialize the screen height and width from termcap.  */

Given the ``!defined (MPW)'' bit is about to go, I'm wondering if the
!defined(_WIN32) is needed?

Hmm, actually, I'm puzzled.  Can anyone fill in the gaps?
	
	__GO32__	djgpp I think
	__CYGWIN__	ok - cygwin
	__CYGWIN32__	ok - old __CYGWIN__
	_WIN32
	_WIN32_WCE
	__MSDOS__

enjoy,
	Andrew

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: _WIN32?
@ 2001-04-19  0:12 Eli Zaretskii
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2001-04-19  0:12 UTC (permalink / raw)
  To: gdb

[I'm resending this because qmail rejected my original message for some 
obscure reason.]

On 17 Apr 2001, DJ Delorie wrote:

> > 	__GO32__	djgpp I think
> 
> DJGPP V1, also defined by DJGPP V2 for backwards compatibility.
> __DJGPP__ is the current recommended symbol.

I don't like changing code just for the sake of changing, that's why I
consistently left the old __GO32__ symbol unless I had a good reason
for changing it into __DJGPP__ (e.g., if DJGPP v1.x behaved
differently from the current DJGPP versions).  You can never know:
someone, somewhere could still use ye olde v1.x of DJGPP.

> > 	__MSDOS__
> 
> DJGPP, Borland C, older MSC's, and other dos-hosted compilers.  This
> is (was?) the canonical way of detecting any dos-hosted compiler
> (compiler-independent filesystem issues, for example)

In some code I contributed, __MSDOS__ is used instead of __DJGPP__
where the underlying issue is not specific to DJGPP, but rather is
common to all MS-DOS-based compilers.  An example is some problem with
limitations of a 8+3 DOS filesystem, e.g. that file names like
`.gdbinit' are not allowed.

By contrast, I use __DJGPP__ for code that won't (or shouldn't) work
with anything but DJGPP.  An example is a snippet in
mant.c:maintenance_dump_me which uses SIGABRT instead of SIGQUIT, for
the reason explained in a comment there.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-05-01  7:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-17 14:50 _WIN32? Andrew Cagney
2001-04-17 14:59 ` _WIN32? Mo DeJong
2001-04-17 15:06 ` _WIN32? Christopher Faylor
2001-04-30 10:05   ` _WIN32? Andrew Cagney
2001-04-30 10:15     ` _WIN32? Christopher Faylor
2001-04-30 16:19       ` [Mingw-users] _WIN32? Danny Smith
2001-04-30 17:03         ` Christopher Faylor
2001-04-30 17:29           ` Danny Smith
2001-05-01  7:03           ` Kai Ruottu
2001-05-01  7:44             ` Christopher Faylor
2001-04-30 18:00       ` _WIN32? Andrew Cagney
2001-04-17 17:45 ` _WIN32? DJ Delorie
2001-04-18  2:17   ` _WIN32? Eli Zaretskii
2001-04-19  0:12 _WIN32? Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).