]> git.lyx.org Git - lyx.git/blobdiff - src/changes.C
include <cmath> in src/changes.C for std::abs(double)
[lyx.git] / src / changes.C
index 0ba57aadf07481dbcaa167e2c6e0126662a8c207..53d89e494e70c7e5d3256d8e483ef388a67b646d 100644 (file)
 #include "changes.h"
 #include "debug.h"
 
+#include <cmath>
 #include <boost/assert.hpp>
 
 
 namespace lyx {
 
+using std::abs;
 using std::endl;
 using std::string;
 using std::max;
@@ -49,7 +51,7 @@ bool operator==(Change const & l, Change const & r)
 
        return l.author == r.author
               // both changes made within 5 minutes?
-              && abs(l.changetime - r.changetime) < 300;
+              && abs(difftime(l.changetime, r.changetime)) < 300;
 }