]> granicus.if.org Git - nethack/commit
fix SYSCF so that things build when first defined
authornhmall <mjnh@persona.ca>
Sat, 21 Mar 2015 19:38:31 +0000 (15:38 -0400)
committernhmall <mjnh@persona.ca>
Sat, 21 Mar 2015 19:38:31 +0000 (15:38 -0400)
commit41ac4aef9272d17525c19fe91d118d210ece05ac
tree7fe3628af6f861d9498783d687eae9eb9e003744
parent297e7c6d5fef2d93e1ddfb02d0b8b812ff7448f2
fix SYSCF so that things build when first defined

Things won't build for ports that first
define SYSCF.

This moves assure_syscf_file() from unixmain.c
to files.c and adjusts extern.h to get it
out from under #ifdef UNIX.

The call to assure_syscf_file() in options.c was
only #ifdef SYSCF, SYSCF_FILE and not UNIX,
so new ports #defining SYSCF would get an erro.

assure_syscf_file() will be utilized by mswin
when SYSCF is defined.
include/extern.h
include/ntconf.h
src/files.c
sys/share/pcmain.c
sys/unix/unixmain.c