delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/01/02:15:01

Date: Thu, 1 Feb 1996 09:05:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Roland Exler <R DOT Exler AT jk DOT uni-linz DOT ac DOT at>
Cc: djgpp AT delorie DOT com
Subject: Re: defines for djgpp V1.x and V2

On 30 Jan 1996, Roland Exler wrote:

> Please could anyone tell me which symbols are defined to identify the 
> version of djgpp running so can change my program using #ifdef to use the 
> right selectors for accessing dos-memory?

Use __DJGPP__ to distinguish between v1.x and v2.0 or above (v1.x doesn't 
define that symbol at all, beginning with v2.0, it gets the value of the 
major revision of DJGPP which is 2 in v2.0).  You can use __DJGPP_MINOR__ 
to differentiate different releases of v2.x; in v2.0 it gets the value of 
0.

Note that currently there is no way to know what version of the library 
is linked into the program.

- Raw text -


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