summaryrefslogtreecommitdiff
path: root/filedef.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-07-30 18:26:42 +0000
committerPaul Smith <psmith@gnu.org>2000-07-30 18:26:42 +0000
commit1a82956eaeb7ba5fde121755d0042c42c2043069 (patch)
tree428a6561e292db9ab7285023d9e9727eaeac2be1 /filedef.h
parent3c132f10f39f1675607d50f5c75669ec64e13bb5 (diff)
downloadgunmake-1a82956eaeb7ba5fde121755d0042c42c2043069.tar.gz
* Various fixes; see the ChangeLog.
Diffstat (limited to 'filedef.h')
-rw-r--r--filedef.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/filedef.h b/filedef.h
index 19f24f8..4a5b9dd 100644
--- a/filedef.h
+++ b/filedef.h
@@ -72,6 +72,8 @@ struct file
} command_state ENUM_BITFIELD (2);
unsigned int precious:1; /* Non-0 means don't delete file on quit */
+ unsigned int low_resolution_time:1; /* Nonzero if this file's time stamp
+ has only one-second resolution. */
unsigned int tried_implicit:1; /* Nonzero if have searched
for implicit rule for making
this file; don't search again. */
@@ -110,13 +112,10 @@ extern void set_command_state PARAMS ((struct file *file, int state));
extern void notice_finished_file PARAMS ((struct file *file));
-#ifdef ST_MTIM_NSEC
-# define FILE_TIMESTAMP_HI_RES \
- (2147483647 < INTEGER_TYPE_MAXIMUM (FILE_TIMESTAMP) >> 31)
+#if FILE_TIMESTAMP_HI_RES
# define FILE_TIMESTAMP_STAT_MODTIME(fname, st) \
file_timestamp_cons (fname, (st).st_mtime, (st).st_mtim.ST_MTIM_NSEC)
#else
-# define FILE_TIMESTAMP_HI_RES 0
# define FILE_TIMESTAMP_STAT_MODTIME(fname, st) \
file_timestamp_cons (fname, (st).st_mtime, 0)
#endif