X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=progs%2Fprogs.priv.h;h=881c4af627b870884643e095331b3a7be67df644;hb=5899b5e464ecec4b1613f6fef8cb7b75793c88e3;hp=da34790275f3d62316e0b30b21b497c701f71ddb;hpb=02f1dee48fe8af6ce054388fba739aa4f975004e;p=ncurses.git diff --git a/progs/progs.priv.h b/progs/progs.priv.h index da347902..881c4af6 100644 --- a/progs/progs.priv.h +++ b/progs/progs.priv.h @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2017,2019 Free Software Foundation, Inc. * + * Copyright 2019,2020 Thomas E. Dickey * + * Copyright 1998-2015,2017 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 * @@ -30,7 +31,7 @@ * Author: Thomas E. Dickey 1997-on * ****************************************************************************/ /* - * $Id: progs.priv.h,v 1.47 2019/12/14 23:53:12 tom Exp $ + * $Id: progs.priv.h,v 1.50 2020/07/25 22:56:33 tom Exp $ * * progs.priv.h * @@ -122,6 +123,11 @@ extern int optind; #define NCURSES_OPAQUE 0 #include + +#if !(defined(NCURSES_WGETCH_EVENTS) && defined(NEED_KEY_EVENT)) +#undef KEY_EVENT /* reduce compiler-warnings with Visual C++ */ +#endif + #include #include #include @@ -154,6 +160,10 @@ extern int optind; #endif /* gcc workarounds */ /* usually in */ +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif + #ifndef STDOUT_FILENO #define STDOUT_FILENO 1 #endif