This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: does egcs build for mingw32 define a compiler specific constant
- To: Jonathan Wilson <wilsonj@xoommail.com>
- Subject: Re: does egcs build for mingw32 define a compiler specific constant
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Wed, 21 Jul 1999 10:43:34 -0500
- cc: cygwin@sourceware.cygnus.com
Jonathan Wilson <wilsonj@xoommail.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@sourceware.cygnus.com