diff options
author | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-07 16:34:47 +0000 |
---|---|---|
committer | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-07 16:34:47 +0000 |
commit | 81d8eda2419e7a23088a98cdfc52a305c9ceac0d (patch) | |
tree | 27143d7b539a8bf2e23cc18e2f598804fa8d784d /lib/common/FileModificationTime.h | |
parent | 065dc6f8cd168e3ee6e71ddfb06f42a92abfabbd (diff) |
Merged martin/autoconf at r35 to trunk
Diffstat (limited to 'lib/common/FileModificationTime.h')
-rwxr-xr-x | lib/common/FileModificationTime.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common/FileModificationTime.h b/lib/common/FileModificationTime.h index 78f5c115..a84df579 100755 --- a/lib/common/FileModificationTime.h +++ b/lib/common/FileModificationTime.h @@ -16,7 +16,7 @@ inline box_time_t FileModificationTime(struct stat &st) { -#ifdef PLATFORM_stat_SHORT_mtime +#ifndef HAVE_STRUCT_STAT_ST_MTIMESPEC box_time_t datamodified = ((int64_t)st.st_mtime) * (MICRO_SEC_IN_SEC_LL); #else box_time_t datamodified = (((int64_t)st.st_mtimespec.tv_nsec) / NANO_SEC_IN_USEC_LL) @@ -28,7 +28,7 @@ inline box_time_t FileModificationTime(struct stat &st) inline box_time_t FileAttrModificationTime(struct stat &st) { -#ifdef PLATFORM_stat_SHORT_mtime +#ifndef HAVE_STRUCT_STAT_ST_MTIMESPEC box_time_t statusmodified = ((int64_t)st.st_ctime) * (MICRO_SEC_IN_SEC_LL); #else box_time_t statusmodified = (((int64_t)st.st_ctimespec.tv_nsec) / NANO_SEC_IN_USEC_LL) @@ -40,7 +40,7 @@ inline box_time_t FileAttrModificationTime(struct stat &st) inline box_time_t FileModificationTimeMaxModAndAttr(struct stat &st) { -#ifdef PLATFORM_stat_SHORT_mtime +#ifndef HAVE_STRUCT_STAT_ST_MTIMESPEC box_time_t datamodified = ((int64_t)st.st_mtime) * (MICRO_SEC_IN_SEC_LL); box_time_t statusmodified = ((int64_t)st.st_ctime) * (MICRO_SEC_IN_SEC_LL); #else |