]> git.lyx.org Git - lyx.git/blobdiff - src/DepTable.cpp
pimpl not needed here
[lyx.git] / src / DepTable.cpp
index c68eef628e45fa567e1898edb0aa54c2a0156b32..e8258dc419418d2f1b23cbb57fb04d53586ba1e2 100644 (file)
 
 #include <fstream>
 
+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;