X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdots_xcurses.c;h=3270322dea6992d3c6676160a16c2df930ec427a;hp=ef077ab23d21d06da85327b2dbfa4f8761945d47;hb=7d6371e47006c8aef4ac94f52998a35b03bf89cf;hpb=8d3ea9021573747ecd129228ba7782a03243f62c diff --git a/test/dots_xcurses.c b/test/dots_xcurses.c index ef077ab2..3270322d 100644 --- a/test/dots_xcurses.c +++ b/test/dots_xcurses.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2017 Free Software Foundation, Inc. * + * Copyright (c) 2017,2018 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -29,13 +29,13 @@ /* * Author: Thomas E. Dickey * - * $Id: dots_xcurses.c,v 1.13 2017/11/24 19:25:45 tom Exp $ + * $Id: dots_xcurses.c,v 1.16 2018/06/23 21:35:06 tom Exp $ * * A simple demo of the wide-curses interface used for comparison with termcap. */ #include -#if !defined(__MINGW32__) +#if !defined(_WIN32) #include #endif @@ -103,7 +103,7 @@ set_colors(int fg, int bg) { int pair = mypair(fg, bg); if (pair > 0) { - color_set((short) pair, NewPair(pair)); + (void) color_set((short) pair, NewPair(pair)); } } @@ -245,7 +245,7 @@ main(int argc, char *argv[]) napms(s_option); } } - wch[0] = p; + wch[0] = (wchar_t) p; addnwstr(wch, 1); refresh(); ++total_chars;