bug-ncurses
[Top][All Lists]
Advanced

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

Re: What's the proper way to get cchar_t?


From: Thomas Dickey
Subject: Re: What's the proper way to get cchar_t?
Date: Fri, 7 Apr 2006 11:39:45 -0400 (EDT)

On Fri, 7 Apr 2006, Pierre Abbat wrote:

On Friday 07 April 2006 06:05, Thomas Dickey wrote:
Perhaps db.h has some problem with defining _XOPEN_SOURCE_EXTENDED (or
some other conflict).  If it can't play nicely, you could include it in
a file that implements the specific features you want.

I removed the definition of _XOPEN_SOURCE_EXTENDED from the project file (it
ends up in configure, apparently, and is defined on the command line for
compiling each file) and put it in the file form.c, which calls ncurses. That
works.

It won't work properly for several platforms, since they rely on it being defined from the command-line, to precede all of the header-files. Ditto for _XOPEN_SOURCE, _POSIX_SOURCE, _POSIX_C_SOURCE. That's why I define those in the makefile.


Apparently this define is processed in features.h which defines
__USE_XOPEN_EXTENDED, then math.h looks at __USE_XOPEN, but not
__USE_XOPEN_EXTENDED. I'm not sure what db.h is doing; it must have something
to do with a file included by db.h.

phma


_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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