Reduce pointless recompilation.
authorTimo Korvola <tkorvola@iki.fi>
Wed, 21 Mar 2018 19:50:40 +0000 (21:50 +0200)
committerTimo Korvola <tkorvola@iki.fi>
Sat, 24 Mar 2018 18:27:07 +0000 (20:27 +0200)
Do not include common/defines.h unless actually needed.  It
contains nothing but version information.  It is updated at every
build to put in the current date.

src/common/frotz.h
src/curses/ux_init.c
src/dumb/dumb_init.c

index dc1572933a8a8539330c2b754181879afa01f4a7..2448d3d44a1cb36b8f1dab836061aef3be0f71df 100644 (file)
@@ -12,7 +12,6 @@
    But since no os_* function uses it, it's safe to let the frotz core see
    this definition, but have the unix port see the curses version. */
 
-#include "defines.h"
 #include "git_hash.h"
 
 #ifndef __UNIX_PORT_FILE
index 46c5d7778a25ea073c7e2893d42a7a5c3a1c1a24..e5d3630561108e8f4d17f1b7eac5ddb078adeb43 100644 (file)
@@ -45,6 +45,8 @@
 #include "ux_frotz.h"
 #include "ux_blorb.h"
 
+#include "../common/defines.h"
+
 volatile sig_atomic_t terminal_resized = 0;
 
 static void sigwinch_handler(int);
index a59e6b60c678c8a4f143730bda19b347098fce45..5244886adf54cc237e4a1f200bc672ea935a6209 100644 (file)
@@ -23,6 +23,8 @@
 #include "dumb_frotz.h"
 #include "dumb_blorb.h"
 
+#include "../common/defines.h"
+
 f_setup_t f_setup;
 
 static char *my_strdup(char *);