Subject: Re: Standard definition for version dependant code.
To: Stephane St Hilaire <email@example.com>
From: Frederick Bruckman <firstname.lastname@example.org>
Date: 05/04/2001 11:04:51
On Fri, 4 May 2001, Stephane St Hilaire wrote:
> This should be an easy question to have answered:
> Is there a standard define that I can use if I want to have conditionnal
> code based on the NetBSD version that my program was compiled on ? Something
> along the lines of a BSD_VERSION that I could used in #ifs and so fourth.
> I've tried to locate something along those lines via grep but haven't found
That's __NetBSD_Version__. Look in sys/param.h.