Mail Archives: djgpp/1996/02/01/02:15:01
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 -