diff options
Diffstat (limited to 'extern')
-rw-r--r-- | extern/libmv/libmv/numeric/numeric.h | 2 | ||||
-rw-r--r-- | extern/libmv/third_party/glog/src/logging.cc | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/extern/libmv/libmv/numeric/numeric.h b/extern/libmv/libmv/numeric/numeric.h index a95723d59cf..81705c4b370 100644 --- a/extern/libmv/libmv/numeric/numeric.h +++ b/extern/libmv/libmv/numeric/numeric.h @@ -44,9 +44,11 @@ inline long lround(double d) { return (long)(d>0 ? d+0.5 : ceil(d-0.5)); } +#if _MSC_VER < 1800 inline int round(double d) { return (d>0) ? int(d+0.5) : int(d-0.5); } +#endif typedef unsigned int uint; #endif // _WIN32 diff --git a/extern/libmv/third_party/glog/src/logging.cc b/extern/libmv/third_party/glog/src/logging.cc index f36e14d2ce4..57d5e24122c 100644 --- a/extern/libmv/third_party/glog/src/logging.cc +++ b/extern/libmv/third_party/glog/src/logging.cc @@ -34,6 +34,7 @@ #include <assert.h> #include <iomanip> #include <string> +#include <algorithm> #ifdef HAVE_UNISTD_H # include <unistd.h> // For _exit. #endif |