Mail Archives: djgpp/1997/07/31/20:33:57
Paul Derbyshire wrote:
>
> Nate Eldredge (eldredge AT ap DOT net) writes:
> > At 05:34 7/24/1997 +0100, you wrote:
> >>Now, how do I in a portable way test for which C compiler might be available?
> >>I can do it easily in 4DOS, but COMMAND.COM compatibility is a lot harder...
> > Well, there's always the method of <gasp> asking the user! My approach would
> > be to define $(CC) = gcc at the top of the makefile, and let the user change
> > it if they want.
> > The better question is, what compiler besides GCC would be available that
> > would work?
>
> #if defined __GNU_C__
Use __DJGPP__ for conditional preprocessing when
writing code for DJGPP, since __GNUC__ is defined
also for other platforms.
BTW: __GNU_C__ is not defined but __GNUC__.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -