Date: Wed, 21 Jan 1998 21:24:27 -0500 (EST) From: Ted Buswell <tbuswell@mediaone.net> To: questions@FreeBSD.ORG Subject: determine OS version at compile time. Message-ID: <199801220224.VAA09579@tbuswell.ne.mediaone.net>
next in thread | raw e-mail | index | archive | help
What's the best way to determine the version of the operating system that a given file is being compiled for? I'd like to do something like: #if defined(__FreeBSD__) #if (FREEBSD_MAJOR > 2) && (FREEBSD_MINOR > 2) && (FREEBSD_PATCH < 5) ... #else ... #endif #endif Thanks, -Ted
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801220224.VAA09579>