[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure: Define NCURSES_WIDECHAR if we're usi
From: |
Kamil Rytarowski |
Subject: |
Re: [Qemu-devel] [PATCH] configure: Define NCURSES_WIDECHAR if we're using curses |
Date: |
Sat, 3 Jun 2017 12:17:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; NetBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
On 03.06.2017 12:13, Rainer Müller wrote:
> On 2017-06-02 16:35, Peter Maydell wrote:
>> diff --git a/configure b/configure
>> index 0586ec9..6aca5d1 100755
>> --- a/configure
>> +++ b/configure
>> @@ -3053,6 +3053,8 @@ int main(void) {
>> EOF
>> IFS=:
>> for curses_inc in $curses_inc_list; do
>> + # Make sure we get the wide character prototypes
>> + curses_inc="-DNCURSES_WIDECHAR $curses_inc"
>> IFS=:
>> for curses_lib in $curses_lib_list; do
>> unset IFS
>>
>
> Thank you for getting back to this. I can confirm that this patch fixes
> --enable-curses for me on Mac OS X.
>
> Although this already works as is, I would use -DNCURSES_WIDECHAR=1 as
> ncurses.h uses #if and not #ifdef to check for this.
>
-DNCURSES_WIDECHAR evaluates to 1 for #if
> Rainer
>
signature.asc
Description: OpenPGP digital signature