diff options
author | marha <marha@users.sourceforge.net> | 2013-01-31 10:29:48 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-01-31 10:29:48 +0100 |
commit | 49c196c1056aaed97ff5cf43beff5c436d783b99 (patch) | |
tree | 6fb821e2c4d3d4c0eedbd53fe0f37dce29412037 /tools/mhmake/src/mhmakefileparser.cpp | |
parent | b77427f7685360a51b4e2384ef4d0235723b410e (diff) | |
download | vcxsrv-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/mhmakefileparser.cpp')
-rw-r--r-- | tools/mhmake/src/mhmakefileparser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mhmake/src/mhmakefileparser.cpp b/tools/mhmake/src/mhmakefileparser.cpp index 55ad056db..4a50d6edd 100644 --- a/tools/mhmake/src/mhmakefileparser.cpp +++ b/tools/mhmake/src/mhmakefileparser.cpp @@ -1190,7 +1190,13 @@ mh_time_t mhmakefileparser::m_sBuildTime; void mhmakefileparser::InitBuildTime()
{
+#ifdef WIN32
+ FILETIME ft;
+ GetSystemTimeAsFileTime(&ft);
+ m_sBuildTime=*(mh_basetime_t*)&ft;
+#else
m_sBuildTime=time(NULL);
+#endif
}
///////////////////////////////////////////////////////////////////////////////
|