Re: ncurses version and preprocessor

From: User Interface mailing list recipient <uilist_at_season.com>
Date: Thu, 6 Feb 1997 12:40:31 -0800 (PST)

 +---- Kaz Kylheku wrote:
 | abortOn Thu, 6 Feb 1997, Alexander V. Lukyanov wrote:
 | > How about
 | > #if !defined(NCURSES_VERSION_MAJOR) || NCURSES_VERSION_MAJOR<5
 | > #error this program requires ncurses 5.x or higher
 | > #endif

Sounds good to me.

 | That's a useful trick at times, but here it really only catches the user
 | who has not read the documentation.
 +----

I would prefer an automated catch if a pile of email or
newsgroup postings is the alternative.

-- 
Gary Johnson gjohnson_at_season.com
The Internet is not The Channel.
Received on Thu Feb 06 1997 - 15:46:35 EST

This archive was generated by hypermail 2.2.0 : Mon Dec 19 2011 - 06:24:16 EST