X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fback_ground.c;h=100282464ac8f3ab70e7cb108df75c0a900a527c;hp=f8661b9482e1fd592eef21b3d9500cfecad4fc3b;hb=9a9dd79463eba7af0b06b6a1f7e580b632ec1be1;hpb=fae162795e065e5901068152e91f2962b6b247f3;ds=sidebyside diff --git a/test/back_ground.c b/test/back_ground.c index f8661b94..10028246 100644 --- a/test/back_ground.c +++ b/test/back_ground.c @@ -26,16 +26,18 @@ * authorization. * ****************************************************************************/ /* - * $Id: back_ground.c,v 1.3 2021/02/13 21:07:58 tom Exp $ + * $Id: back_ground.c,v 1.5 2021/02/20 12:23:21 tom Exp $ */ +#include + +#if USE_WIDEC_SUPPORT + #define NEED_COLOR_CODE 1 #define NEED_COLOR_NAME 1 #include #include -#if USE_WIDEC_SUPPORT - static int default_bg = COLOR_BLACK; static int default_fg = COLOR_WHITE; static wchar_t wide_fill = L' '; @@ -43,7 +45,7 @@ static wchar_t wide_fill = L' '; static wchar_t decode_wchar(const char *value) { - wchar_t result; + long result; char *next = NULL; int radix = 0; @@ -56,7 +58,7 @@ decode_wchar(const char *value) fprintf(stderr, "decoding wchar_t: %s\n", value); exit(EXIT_FAILURE); } - return result; + return (wchar_t) result; } static void