delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/21/12:55:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199907211543.KAA00873@mercury.xraylith.wisc.edu>
To: Jonathan Wilson <wilsonj AT xoommail DOT com>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: does egcs build for mingw32 define a compiler specific constant
In-Reply-To: Your message of "Wed, 21 Jul 1999 23:06:20 +0800."
<3795E1EB DOT B8A5843C AT xoommail DOT com>
Date: Wed, 21 Jul 1999 10:43:34 -0500
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Jonathan Wilson <wilsonj AT xoommail DOT com> writes:
> does egcs build for mingw32 define a compiler specific constant?
> like msvisualc++ _msc_ver etc etc
> 

MS VisualC++ does not define _msc_ver, rather defines _MSC_VER. Too
see what GCC predefines, you can do the following on Unix:

  $ gcc -c -E -dM - < /dev/null

On DOS, you can create an empty file, say foo.c, and do this:

  $ gcc -c -E -dM foo.c

The ones that are always defined is __GNUC__, which specifies the
major version number and __GNUC_MINOR__, the minor version number.
For Mingw, it also defines __MINGW32__; if you're using MSVCRT
runtime, it also defines __MSVCRT__.

Please look at the documentation supplied with the compiler (or at least
made available from my site in variety of formats).
  ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/egcs-1.1.2/

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019