Re: mingw --enable-tui

gmail Vladimir Koković via Gdb-patches
2020-11-22T17:06:32Z

Hi,

I think it's about mingw64 and not curses.

If you look at the patch, the fix is ​​only in adding cast (int) which
in my opinion belongs to the compiler.

On 22.11.20. 17:55, Eli Zaretskii wrote:
>> Cc: gdb-patches@sourceware.org
>> From: gmail Vladimir Koković <vladimir.kokovic@gmail.com>
>> Date: Sun, 22 Nov 2020 17:35:03 +0100
>>
>> For mingw, pdcurses is used, not ncurses.
>>
>> pdcurses curses.h:
>>
>> #if defined( CHTYPE_32)
>> #if defined( CHTYPE_64)
>> #error CHTYPE cannot be both CHTYPE_32 and CHTYPE_64
>> #endif
>> typedef uint32_t chtype; /* chtypes will be 32 bits */
>> #else
>> #define CHTYPE_64
>> typedef uint64_t chtype; /* chtypes will be 64 bits */
>> #ifdef PDC_WIDE
>> #define USING_COMBINING_CHARACTER_SCHEME
>> #endif
>> #endif
> Thanks, then I guess the condition should be for PDCurses, not
> necessarily for MinGW64. I see no reason to assume that MinGW64 GDB
> will always be built with PDCurses.
>