www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/03/22:39:23

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: is there a compiler define?
Date: Fri, 03 Jan 1997 18:48:43 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 26
Message-ID: <32CDC50B.76E8@cs.com>
References: <32CD0A7E DOT 7F94 AT novia DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Dead_and_gone wrote:
> 
> I was wondering if Djgpp/gcc has a define that you can look for so
> you can do compiler specific conditional compiles ie -
> 
> #if defined(__TURBOC__)
> .........turbo c specific code here
> #endif

#if defined(DJGPP)
....... DJGPP specific code here
#endif

Even nicer is the following:

#if defined(DJGPP) && DJGPP == 2 && DJGPP_MINOR > 0
..... DJGPP 2.01 or greater stuff
#endif

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I      |   mailto:fighteer AT cs DOT com   |
| God's final message to His Creation: | http://www.cs.com/fighteer |
| "We apologize for the inconvenience."| Fight against proprietary  |
|                      - Douglas Adams | software - support the FSF!|
---------------------------------------------------------------------

- Raw text -


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