]> granicus.if.org Git - nethack/commitdiff
another macOS.370 hint tweak
authornhmall <nhmall@nethack.org>
Wed, 15 Jun 2022 23:07:28 +0000 (19:07 -0400)
committernhmall <nhmall@nethack.org>
Wed, 15 Jun 2022 23:07:28 +0000 (19:07 -0400)
sys/unix/hints/macOS.370

index 4308fc315fb678b7540b03011826bcc9fa6df3f6..a3ec3a6297ffc2a43e3a68108a1a6b051d69c575 100755 (executable)
@@ -140,6 +140,9 @@ ifeq "$(CURSES_UNICODE)" "sys"
 NHCFLAGS+=-DCURSES_UNICODE
 WINLIB += $(CURSESLIB)
 else
+ifeq "$(CURSES_UNICODE)" "0"
+WINLIB += $(CURSESLIB)
+else
 ifeq "$(USE_CURSESLIB)" "1"
 NHCFLAGS+=-DCURSES_UNICODE
 else
@@ -153,16 +156,13 @@ HAVE_NCURSESW=1
 else
 HAVE_NCURSESW=0
 endif
-ifneq "$(CURSES_UNICODE)" "0"
 ifeq "$(HAVE_NCURSESW)" "1"
 CURSESLIB = $(NCURSES_LFLAGS)
 NHCFLAGS+=-DCURSES_UNICODE
 else
 $(info Attention: CURSES_UNICODE is not being defined without ncursesw)
 endif   #HAVE_NCURSESW
-endif   #not CURSES_UNICODE=0
 endif   #USE_CURSESLIB
-ifneq "$(CURSES_UNICODE)" "0"
 ifdef CURSESLIB
 PKGCFLAGS=
 ifeq "$(HAVE_HOMEBREW)" "1"
@@ -189,12 +189,11 @@ LFLAGS += $(HOMEBREW_LFLAGS) $(MACPORTS_LFLAGS)
 WINLIB += $(HOMEBREW_WINLIB) $(MACPORTS_WINLIB) $(CURSESLIB)
 PKGCFLAGS += $(HOMEBREW_CFLAGS) $(MACPORTS_CFLAGS)
 endif   #CURSESLIB
-else    # CURSES_UNICODE
 WINLIB += $(CURSESLIB)
 $(info WINLIB=$(WINLIB))
 $(info CURSESLIB=$(CURSESLIB))
-endif   #not CURSES_UNICODE=0
-endif   #not CURSES_UNIODE=sys
+endif   #CURSES_UNICODE=0
+endif   #CURSES_UNIODE=sys
 endif   #MAKEFILE_SRC
 
 CFLAGS+= $(PKGCFLAGS) $(WINCFLAGS)  #WINCFLAGS set from multiw-2.370