date.h/patchlevel.h dependencies (trunk only)
Remove date.h and patchlevel.h from win/tty/wintty.c, win/X11/winX.c, and sys/share/pcmain.c (caveat: the latter two are untested) so that they don't get recompiled every time any other source file changes and triggers creation of a new date.h. Only version.c needs to be recompiled in that situation. Also, Makefile.src was missing a reference to botl.h.
This commit is contained in:
@@ -6,12 +6,6 @@
|
||||
|
||||
#include "hack.h"
|
||||
#include "dlb.h"
|
||||
#include "date.h"
|
||||
#ifdef SHORT_FILENAMES
|
||||
#include "patchlev.h"
|
||||
#else
|
||||
#include "patchlevel.h"
|
||||
#endif
|
||||
|
||||
#ifndef NO_SIGNAL
|
||||
#include <signal.h>
|
||||
@@ -279,13 +273,14 @@ char *argv[];
|
||||
error("Your clock is incorrectly set!");
|
||||
#endif
|
||||
if (!dlb_init()) {
|
||||
pline("%s\n%s\n%s\n%s\n\nNetHack was unable to open the required file \"%s\".%s",
|
||||
COPYRIGHT_BANNER_A, COPYRIGHT_BANNER_B,
|
||||
COPYRIGHT_BANNER_C, COPYRIGHT_BANNER_D, DLBFILE,
|
||||
pline(
|
||||
"%s\n%s\n%s\n%s\n\nNetHack was unable to open the required file \"%s\".%s",
|
||||
copyright_banner_line(1), copyright_banner_line(2),
|
||||
copyright_banner_line(3), copyright_banner_line(4), DLBFILE,
|
||||
#ifdef WIN32
|
||||
"\nAre you perhaps trying to run NetHack within a zip utility?");
|
||||
"\nAre you perhaps trying to run NetHack within a zip utility?");
|
||||
#else
|
||||
"");
|
||||
"");
|
||||
#endif
|
||||
error("dlb_init failure.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user