fix dos cross-compile
This commit is contained in:
@@ -74,17 +74,17 @@ ifdef BUILD_PDCURSES
|
|||||||
# PD Curses library
|
# PD Curses library
|
||||||
#===============-=================================================
|
#===============-=================================================
|
||||||
ifdef WANT_WIN_CURSES
|
ifdef WANT_WIN_CURSES
|
||||||
ifdef WANT_DOSVGA
|
|
||||||
PDCTOP = ../lib/pdcursesmod
|
PDCTOP = ../lib/pdcursesmod
|
||||||
|
ifdef WANT_DOSVGA
|
||||||
PDCPORT = $(PDCTOP)/dosvga
|
PDCPORT = $(PDCTOP)/dosvga
|
||||||
PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \
|
PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \
|
||||||
-D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" \
|
-D"CURSES_GRAPHICS" -D"CURSES_BRIEF_INCLUDE" \
|
||||||
-D"PDC_WIDE" -D"CURSES_UNICODE"
|
-D"PDC_WIDE" -D"CURSES_UNICODE"
|
||||||
else
|
else
|
||||||
PDCTOP = ../lib/pdcurses
|
|
||||||
PDCPORT = $(PDCTOP)/dos
|
PDCPORT = $(PDCTOP)/dos
|
||||||
PDCURSESDEF= -I$(PDCTOP) -I$(PDCPORT) \
|
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
|
endif # WANT_DOSVGA
|
||||||
PDCLIBOBJ1= $(TARGETPFX)addch.o $(TARGETPFX)addchstr.o \
|
PDCLIBOBJ1= $(TARGETPFX)addch.o $(TARGETPFX)addchstr.o \
|
||||||
$(TARGETPFX)addstr.o $(TARGETPFX)attr.o \
|
$(TARGETPFX)addstr.o $(TARGETPFX)attr.o \
|
||||||
|
|||||||
@@ -857,7 +857,7 @@ int
|
|||||||
curses_convert_keys(int key)
|
curses_convert_keys(int key)
|
||||||
{
|
{
|
||||||
boolean reject = (gp.program_state.input_state == otherInp),
|
boolean reject = (gp.program_state.input_state == otherInp),
|
||||||
as_is = FALSE, numpad_esc;
|
as_is = FALSE, numpad_esc = FALSE;
|
||||||
int ret = key;
|
int ret = key;
|
||||||
|
|
||||||
if (modifiers_available)
|
if (modifiers_available)
|
||||||
@@ -1106,6 +1106,7 @@ parse_escape_sequence(boolean *keypadnum)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
#else
|
||||||
|
nhUse(keypadnum);
|
||||||
return '\033';
|
return '\033';
|
||||||
#endif /* !PDCURSES */
|
#endif /* !PDCURSES */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user