X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Fcurses.priv.h;h=1d51a85f72dcbfa27c54b25549848488d9ec8d19;hb=fe43d506ce08d1deef9e9e5a6d5fd4f9c9c32e1d;hp=0d61dc34ea4e2f505d7cbbe3a30a0677b6c2a8de;hpb=9a0b985989d0aeb66b66b5711d432322aa994969;p=ncurses.git diff --git a/ncurses/curses.priv.h b/ncurses/curses.priv.h index 0d61dc34..1d51a85f 100644 --- a/ncurses/curses.priv.h +++ b/ncurses/curses.priv.h @@ -34,7 +34,7 @@ ****************************************************************************/ /* - * $Id: curses.priv.h,v 1.623 2019/06/01 23:41:36 tom Exp $ + * $Id: curses.priv.h,v 1.624 2019/06/23 15:20:49 tom Exp $ * * curses.priv.h * @@ -1766,12 +1766,16 @@ extern NCURSES_EXPORT_VAR(SIG_ATOMIC_T) _nc_have_sigwinch; #define TPUTS_TRACE(s) _nc_tputs_trace = s; #endif +#ifdef HAVE_CONSISTENT_GETENV #define START_TRACE() \ if ((_nc_tracing & TRACE_MAXIMUM) == 0) { \ int t = _nc_getenv_num("NCURSES_TRACE"); \ if (t >= 0) \ trace((unsigned) t); \ } +#else +#define START_TRACE() /* nothing */ +#endif /* * Many of the _tracef() calls use static buffers; lock the trace state before