summaryrefslogtreecommitdiff
path: root/src/filedef.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-10-01 17:17:26 -0400
committerPaul Smith <psmith@gnu.org>2022-10-02 08:55:29 -0400
commit3cb84fe9335228f10257ac049b838a166fb531c4 (patch)
treee89fceece4198d5e30c6976141565ca161f539f2 /src/filedef.h
parentad84ec2fdc331030ab154508d2229e151ed91fc8 (diff)
downloadmake-git-3cb84fe9335228f10257ac049b838a166fb531c4.tar.gz
* src/filedef.h (is_ordinary_mtime): Check for "ordinary" mod time.
* src/remake.c (update_file_1): Use the new macro.
Diffstat (limited to 'src/filedef.h')
-rw-r--r--src/filedef.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filedef.h b/src/filedef.h
index 304a07f6..ac7df008 100644
--- a/src/filedef.h
+++ b/src/filedef.h
@@ -212,6 +212,8 @@ FILE_TIMESTAMP f_mtime (struct file *file, int search);
<< FILE_TIMESTAMP_LO_BITS) \
+ ORDINARY_MTIME_MIN + FILE_TIMESTAMPS_PER_S - 1)
+#define is_ordinary_mtime(_t) ((_t) >= ORDINARY_MTIME_MIN && (_t) <= ORDINARY_MTIME_MAX)
+
/* Modtime value to use for 'infinitely new'. We used to get the current time
from the system and use that whenever we wanted 'new'. But that causes
trouble when the machine running make and the machine holding a file have