bypass curses_putmixed if -DCURSES_GENL_PUTMIXED is defined

This commit is contained in:
nhmall
2023-06-11 09:23:07 -04:00
parent c4c31ae6a8
commit 37b21dd9fd
4 changed files with 25 additions and 11 deletions

View File

@@ -119,6 +119,11 @@ SYSOBJ = $(TARGETPFX)ioctl.o $(TARGETPFX)unixmain.o $(TARGETPFX)unixtty.o \
# CFLAGS = -mshort -O2 -fomit-frame-pointer -I../include
# LFLAGS = -mshort -s
# Curses, use one of the following:
# -D_XOPEN_SOURCE_EXTENDED=1 allows any map character to appear in the message window
# during far look with the '/' command.
# -DCURSES_GENL_PUTMIXED to disable that and fall back to displaying only the historical tty character.
#
# flags for AIX 3.1 cc on IBM RS/6000 to define
# a suitable subset of standard libraries
# (note that there is more info regarding the "-qchars=signed"

View File

@@ -90,7 +90,12 @@ WINCFLAGS += -DNOTTYGRAPHICS
endif
ifdef WANT_WIN_CURSES
WINCFLAGS += -DCURSES_GRAPHICS -D_XOPEN_SOURCE_EXTENDED=1
WINCFLAGS += -DCURSES_GRAPHICS
ifeq "$(NOPUTMIXED)" "1"
WINCFLAGS += -DCURSES_GENL_PUTMIXED
else
WINCFLAGS += -D_XOPEN_SOURCE_EXTENDED=1
endif
WINSRC += $(WINCURSESSRC)
WINOBJ0 += $(WINCURSESOBJ)
endif