]> granicus.if.org Git - nethack/commit
curses follow-up bits
authornhmall <nhmall@nethack.org>
Fri, 30 Nov 2018 21:00:24 +0000 (16:00 -0500)
committernhmall <nhmall@nethack.org>
Fri, 30 Nov 2018 21:00:24 +0000 (16:00 -0500)
commit8a9f98f179789c6455efb67fcbe8a603af5dbeae
treed33b542e6d1fb2d25af1aaca4d6f59b825dc09a8
parent75bf7c1975714310cdd0912f61638481030e897a
curses follow-up bits

Move the curses global variable defininitions to cursmain.c.

Make the references to those global variables extern in
include/wincurs.h

Get rid of a warning:
../win/curses/cursmesg.c:379:9: warning: declaration shadows a
variable in the global scope [-Wshadow] int orig_cursor = curs_set(0);

Kludge for Visual Studio compiler: Add a stub- file for use
in Windows curses port builds to ensure that a needed #pragma
is invoked prior to compiling the file pdcscrn.c in the
PDCurses source distribution. All command line options and
compile of the file. It is unreasonable to expect a NetHack
builder to have to tinker with the PDCurses source files in
order to build NetHack. This kludge means the NetHack builder
doesn't have to.
The file stub-pdcscrn.c contains only two lines:
#pragma warning(disable : 4996)
#include "pdcscrn.c"
Some day, if the PDCurses sources corrects the issue, this
can go away.
include/wincurs.h
sys/winnt/Makefile.msc
sys/winnt/stub-pdcscrn.c [new file with mode: 0644]
win/curses/cursmain.c
win/curses/cursmesg.c