From 07e2ec14781ae4b2458eac4c8ddcb9ab8133c3cc Mon Sep 17 00:00:00 2001 From: vng Date: Sun, 12 Jun 2011 21:13:57 +0300 Subject: [PATCH] Fix compilation on msvc. --- base/timer.cpp | 1 + map/framework.cpp | 5 +++-- map/languages.hpp | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/base/timer.cpp b/base/timer.cpp index c544447624..2f3f4b1aa8 100644 --- a/base/timer.cpp +++ b/base/timer.cpp @@ -2,6 +2,7 @@ #include "../std/target_os.hpp" #include "../std/time.hpp" +#include "../std/stdint.hpp" namespace my { diff --git a/map/framework.cpp b/map/framework.cpp index 02e4602381..c916e846dd 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -20,6 +20,7 @@ #include "../std/algorithm.hpp" #include "../std/fstream.hpp" +#include "../std/ctime.hpp" #include "../version/version.hpp" @@ -526,8 +527,8 @@ void FrameWork::AddRedrawCommandSure() template void FrameWork::InitBenchmark() { -// m2::RectD wr(MercatorBounds::minX, MercatorBounds::minY, MercatorBounds::maxX, MercatorBounds::maxY); -// m2::RectD r(wr.Center().x, wr.Center().y + wr.SizeY() / 8, wr.Center().x + wr.SizeX() / 8, wr.Center().y + wr.SizeY() / 4); + //m2::RectD wr(MercatorBounds::minX, MercatorBounds::minY, MercatorBounds::maxX, MercatorBounds::maxY); + //m2::RectD r(wr.Center().x, wr.Center().y + wr.SizeY() / 8, wr.Center().x + wr.SizeX() / 8, wr.Center().y + wr.SizeY() / 4); ifstream fin(GetPlatform().WritablePathForFile("benchmark.results").c_str()); while (true) diff --git a/map/languages.hpp b/map/languages.hpp index a3f4cd584a..55be4b8ec6 100644 --- a/map/languages.hpp +++ b/map/languages.hpp @@ -3,6 +3,7 @@ #include "../std/vector.hpp" #include "../std/string.hpp" #include "../std/utility.hpp" +#include "../std/stdint.hpp" namespace languages {