replace NOTPARMDECL with TPARM_WORKAROUND

The old logic used a negative check to emit an extern declaration for
tparm(). This guarded against old platforms whose curses implementations
did not declare their own functions.

If there are still any platforms left that need this declaration, they
can set TPARM_WORKAROUND to get the old behavior back.
This commit is contained in:
Patric Mueller
2026-06-10 10:16:44 +02:00
parent 178b295701
commit 49ac961884
6 changed files with 10 additions and 19 deletions
+4 -4
View File
@@ -246,10 +246,10 @@ Notes:
13. If you get a compiler warning about 'get_colors()' being implicitly
declared, try uncommenting NEED_GET_COLORS_DECL in unixconf.h.
If you get a compiler complaint about tparmdecl() having conflicting
declarations, add '#define NOTPARMDECL' to unixconf.h or '-DNOTPARMDECL'
to CFLAGS in src/Makefile. (The hints files for Mac OSX already do the
latter.)
If you get a compiler warning about tparm() being implicitly
declared, add '#define TPARM_WORKAROUND' to unixconf.h or
'-DTPARM_WORKAROUND' to CFLAGS. (This should not be needed
on any modern system.)
# NetHack 5.0 Install.unx $NHDT-Date: 1577568915 2019/12/28 21:35:15 $ $NHDT-Branch: NetHack-5.0 $:$NHDT-Revision: 1.14 $
# Copyright (c) 2012 by Kenneth Lorber, Kensington, Maryland