[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HP-UX compile failure with --enable-widec
From: |
Thomas Dickey |
Subject: |
Re: HP-UX compile failure with --enable-widec |
Date: |
Sun, 11 May 2003 15:28:46 -0400 |
User-agent: |
Mutt/1.3.27i |
On Sun, May 11, 2003 at 10:47:25AM -0700, David Ellement wrote:
> I'm on an HP-UX 11.11 system, using gcc. When I configure with the
> --enable-widec option, the compile fails in lib_addstr.c. The type
> `mbstate_t' hasn't been declared.
>
> The definition appears in <sys/_mbstate_t.h>, which should be included
> by <wchar.h>. Assuming this definition is compatible with the rest of
> the ncurses code, how do I get it included for lib_addstr.c?
hmm - one question raises several more. The natural place to add that
would be to parameterize this chunk in curses.h.in, to allow different
header files to be included:
#if @NEED_WCHAR_H@
#include <wchar.h> /* ...to get mbstate_t, etc. */
#endif
But the name "_mbstate_t.h" looks like someone's notion of a private
header file. Is that not included by some other header file as well?
(possibly an ifdef needs to be set).
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net