Mail Archives: cygwin/1999/07/21/12:55:51
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 -