fix dos cross-compile
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user