aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/fileinfo.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-01-31 10:29:48 +0100
committermarha <marha@users.sourceforge.net>2013-01-31 10:29:48 +0100
commit49c196c1056aaed97ff5cf43beff5c436d783b99 (patch)
tree6fb821e2c4d3d4c0eedbd53fe0f37dce29412037 /tools/mhmake/src/fileinfo.h
parentb77427f7685360a51b4e2384ef4d0235723b410e (diff)
downloadvcxsrv-49c196c1056aaed97ff5cf43beff5c436d783b99.tar.gz
vcxsrv-49c196c1056aaed97ff5cf43beff5c436d783b99.tar.bz2
vcxsrv-49c196c1056aaed97ff5cf43beff5c436d783b99.zip
mhmake: solved file date checking on 64-bit windows
Diffstat (limited to 'tools/mhmake/src/fileinfo.h')
-rw-r--r--tools/mhmake/src/fileinfo.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/mhmake/src/fileinfo.h b/tools/mhmake/src/fileinfo.h
index b658ac677..f504a3cf3 100644
--- a/tools/mhmake/src/fileinfo.h
+++ b/tools/mhmake/src/fileinfo.h
@@ -67,6 +67,12 @@ inline string stringify(const T& x)
return o.str();
}
+#ifdef WIN32
+typedef unsigned _int64 mh_basetime_t;
+#else
+typedef unsigned long mh_basetime_t;
+#endif
+
#define TIMESAFETY 3
class mh_time
{
@@ -76,13 +82,13 @@ class mh_time
NOTEXISTTIME=1,
DIRTIME =2+TIMESAFETY
};
- unsigned long m_Time;
+ mh_basetime_t m_Time;
bool operator < (const mh_time &Src);
public:
mh_time(){m_Time=DATENOTVALID;}
- mh_time(time_t Time) : m_Time((unsigned long)Time) {}
- mh_time(unsigned long Time) : m_Time(Time) {}
+ mh_time(time_t Time) : m_Time((mh_basetime_t)Time) {}
+ mh_time(mh_basetime_t Time) : m_Time(Time) {}
mh_time(const mh_time &Time) : m_Time(Time.m_Time) {}
void SetDir(void)