X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest.priv.h;h=3fc464cfb39751677a7f23678e01fc2c9c902f0c;hp=e9966129a974d7fb6e3b4a6b4e2e60fea288e6e4;hb=5da4544722decdeb2bfd0c7c4581af0ea62148f9;hpb=d66080c21038ad4feb2e41a0c4e517d5b4a03ab2 diff --git a/test/test.priv.h b/test/test.priv.h index e9966129..3fc464cf 100644 --- a/test/test.priv.h +++ b/test/test.priv.h @@ -29,7 +29,7 @@ /**************************************************************************** * Author: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: test.priv.h,v 1.164 2018/01/27 20:27:16 tom Exp $ */ +/* $Id: test.priv.h,v 1.167 2018/06/23 21:35:06 tom Exp $ */ #ifndef __TEST_PRIV_H #define __TEST_PRIV_H 1 @@ -865,7 +865,7 @@ extern char *strnames[], *strcodes[], *strfnames[]; #define EXIT_FAILURE 1 #endif -#if defined(__MINGW32__) || defined(USE_WIN32CON_DRIVER) +#if defined(_WIN32) || defined(USE_WIN32CON_DRIVER) #if defined(PDCURSES) #ifdef WINVER @@ -903,7 +903,7 @@ extern char *strnames[], *strcodes[], *strfnames[]; */ #ifndef NCURSES_CONST #ifdef PDCURSES -#define NCURSES_CONST const /* close enough */ +#define NCURSES_CONST const /* close enough */ #else #define NCURSES_CONST /* nothing */ #endif @@ -1005,10 +1005,12 @@ extern char *tgoto(char *, int, int); /* available, but not prototyped */ #if HAVE_USE_WINDOW #define USING_WINDOW(w,func) use_window(w, (NCURSES_WINDOW_CB) func, w) +#define USING_WINDOW1(w,func,safe) use_window(w, (NCURSES_WINDOW_CB) safe, NULL) #define USING_WINDOW2(w,func,data) use_window(w, (NCURSES_WINDOW_CB) func, data) #define WANT_USE_WINDOW() extern void _nc_want_use_window(void) #else #define USING_WINDOW(w,func) func(w) +#define USING_WINDOW1(w,func,safe) func(w) #define USING_WINDOW2(w,func,data) func(w,data) #define WANT_USE_WINDOW() extern void _nc_want_use_window(void) #endif