X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;ds=sidebyside;f=test%2Ftest.priv.h;h=18cfc9074faf08004d7fa4f577a5b28c88e8b8a4;hb=460005b642d978c6d4b48810803514bd36a6245b;hp=f0b660f434ce78c4cda936d3c5b1f7107eeb3671;hpb=2db461ea0b1b29c142e3000d830b520c946e385b;p=ncurses.git diff --git a/test/test.priv.h b/test/test.priv.h index f0b660f4..18cfc907 100644 --- a/test/test.priv.h +++ b/test/test.priv.h @@ -30,7 +30,7 @@ /**************************************************************************** * Author: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: test.priv.h,v 1.185 2020/02/02 23:34:34 tom Exp $ */ +/* $Id: test.priv.h,v 1.186 2020/05/10 00:36:06 tom Exp $ */ #ifndef __TEST_PRIV_H #define __TEST_PRIV_H 1 @@ -1022,6 +1022,12 @@ extern char *_nc_strstr(const char *, const char *); #define InitAndCatch(init,handler) do { init; CATCHALL(handler); } while (0) #endif +#if defined(_WIN32) || defined(USE_WIN32CON_DRIVER) +#define SetupAlarm(opt) (void)opt +#else +#define SetupAlarm(opt) if (opt) alarm((unsigned)opt) +#endif + /* * Workaround for clean(er) compile with Solaris's legacy curses. * The same would be needed for HPUX 10.20