From f33cd69c20e2661420ffbd840804eefefbca719e Mon Sep 17 00:00:00 2001 From: David Griffith Date: Mon, 30 Jul 2018 23:56:55 -0700 Subject: [PATCH] Fix NO_STRRCHR for consistency. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8f40a94..62d1625 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ CURSES ?= -lncurses # the strrchr() libc library call. If you don't know what this means, # leave it alone. # -#STRRCHR_DEF = -DNO_STRRCHR +#NO_STRRCHR = yes # Uncomment this if you're compiling Unix Frotz on a machine that lacks # the memmove(3) system call. If you don't know what this means, leave it @@ -90,7 +90,6 @@ export SYSCONFDIR export INCLUDEDIR export LIBDIR export COLOR -export STRRCHR_DEF # Versioning @@ -213,6 +212,9 @@ $(COMMON_DEFINES): @echo "Generating $@" @echo "#ifndef COMMON_DEFINES_H" > $@ @echo "#define COMMON_DEFINES_H" >> $@ +ifdef NO_STRRCHR + @echo "#define NO_STRRCHR" >> $@ +endif ifdef NO_MEMMOVE @echo "#define NO_MEMMOVE" >> $@ endif -- 2.34.1