X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FDepTable.cpp;h=e8258dc419418d2f1b23cbb57fb04d53586ba1e2;hb=09df753df4c24470617c64d25eae6df2db85dfed;hp=c68eef628e45fa567e1898edb0aa54c2a0156b32;hpb=f630be890494c849981e4fb52ea4740506e92bed;p=lyx.git diff --git a/src/DepTable.cpp b/src/DepTable.cpp index c68eef628e..e8258dc419 100644 --- a/src/DepTable.cpp +++ b/src/DepTable.cpp @@ -25,12 +25,15 @@ #include +using std::endl; +using std::flush; +using std::getline; +using std::string; +using std::ofstream; +using std::ifstream; -namespace lyx { -#ifndef CXX_GLOBAL_CSTD -using std::time; -#endif +namespace lyx { using support::FileName; using support::ltrim; @@ -38,13 +41,6 @@ using support::onlyFilename; using support::suffixIs; using support::sum; -using std::endl; -using std::flush; -using std::getline; -using std::string; -using std::ofstream; -using std::ifstream; - inline bool DepTable::dep_info::changed() const { @@ -63,7 +59,7 @@ void DepTable::insert(FileName const & f, bool upd) LYXERR(Debug::DEPEND) << "done." << endl; struct stat f_info; stat(f.toFilesystemEncoding().c_str(), &f_info); - di.mtime_cur = f_info.st_mtime; + di.mtime_cur = long(f_info.st_mtime); } else { di.crc_cur = 0; di.mtime_cur = 0;