X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_getstr.c;h=25dbecf74136326c34e83f4efad96fc6cf91fe09;hp=5710c1ab982bf7c61a388a09d1582d9df736613b;hb=78e49873c69dc0494bb34c62f897f8b446584a33;hpb=03a795bde58b3280a4e9d80029a3b7fec13c79ad;ds=sidebyside diff --git a/test/test_getstr.c b/test/test_getstr.c index 5710c1ab..25dbecf7 100644 --- a/test/test_getstr.c +++ b/test/test_getstr.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007 Free Software Foundation, Inc. * + * Copyright (c) 2007,2008 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 * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_getstr.c,v 1.6 2007/07/28 19:46:43 tom Exp $ + * $Id: test_getstr.c,v 1.8 2008/02/09 18:09:35 tom Exp $ * * Author: Thomas E Dickey * @@ -44,6 +44,9 @@ #include +#if HAVE_CHGAT +/* Solaris SVr4 curses lacks wchgat, mvgetnstr, mvwgetnstr */ + #define BASE_Y 6 #define MAX_COLS 1024 @@ -87,7 +90,7 @@ MovePrompt(WINDOW *txtwin, int limit, int y, int x) } static int -ShowFlavor(WINDOW *strwin, WINDOW *txtwin, Flavors flavor, int limit) +ShowFlavor(WINDOW *strwin, WINDOW *txtwin, int flavor, int limit) { const char *name = "?"; bool limited = FALSE; @@ -349,3 +352,12 @@ main(int argc, char *argv[]) endwin(); ExitProgram(EXIT_SUCCESS); } + +#else +int +main(void) +{ + printf("This program requires the curses chgat function\n"); + ExitProgram(EXIT_FAILURE); +} +#endif