fix dos cross-compile

This commit is contained in:
nhmall
2023-06-06 18:42:27 -04:00
parent 6ade366928
commit b21ef624eb
2 changed files with 5 additions and 4 deletions

View File

@@ -74,17 +74,17 @@ ifdef BUILD_PDCURSES
# PD Curses library
#===============-=================================================
ifdef WANT_WIN_CURSES
ifdef WANT_DOSVGA
PDCTOP = ../lib/pdcursesmod
ifdef WANT_DOSVGA
PDCPORT = $(PDCTOP)/dosvga
PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \
-D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" \
-D"PDC_WIDE" -D"CURSES_UNICODE"
else
PDCTOP = ../lib/pdcurses
PDCPORT = $(PDCTOP)/dos
PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \
-D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE"
-D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" \
-D"PDC_WIDE"
endif # WANT_DOSVGA
PDCLIBOBJ1= $(TARGETPFX)addch.o $(TARGETPFX)addchstr.o \
$(TARGETPFX)addstr.o $(TARGETPFX)attr.o \

View File

@@ -857,7 +857,7 @@ int
curses_convert_keys(int key)
{
boolean reject = (gp.program_state.input_state == otherInp),
as_is = FALSE, numpad_esc;
as_is = FALSE, numpad_esc = FALSE;
int ret = key;
if (modifiers_available)
@@ -1106,6 +1106,7 @@ parse_escape_sequence(boolean *keypadnum)
return ret;
#else
nhUse(keypadnum);
return '\033';
#endif /* !PDCURSES */
}