[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV getbkgd

From: T.E.Dickey
Subject: Re: LYNX-DEV getbkgd
Date: Tue, 2 Sep 1997 21:21:27 -0400 (EDT)

> On Tue, 2 Sep 1997, T.E.Dickey wrote:
> > PDCurses (based on SVr3 curses) is going to be different in the
> > bkgd-related functions.  Rather than put an ifdef for getbkgd (which isn't
> > portable), there should be a feature-test macro (such as HAVE_GETBKGD) to
> > distinguish.
> How can
>  #if defined(COLOR_CURSES) && defined(getbkgd) /* not defined in ncurses 
> 1.8.7 */
> be replaced until we have a HAVE_GETBKGD test?  Is this:
>  #if defined(COLOR_CURSES) && (!defined(PDCURSES) || defined(getbkgd))
> right, or something else?
SVr4 (being XPG4 compliant) is free to implement getbkgd as a macro
and as a function (it does).  But you don't know if you're going to get
the macro (it's ifdef'd differently on Solaris and IRIX, and, I'll bet,
on HP-UX 10.x).

Thomas E. Dickey
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]