From 1fcc68da9715d7265b26f5af824e1e166feee64f Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 12 Jun 2011 19:18:14 +0300 Subject: [PATCH] Added std/time.hpp for os-dependent time function calls --- std/time.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 std/time.hpp diff --git a/std/time.hpp b/std/time.hpp new file mode 100644 index 0000000000..c535b83e50 --- /dev/null +++ b/std/time.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include "common_defines.hpp" +#include "target_os.hpp" + +#ifdef new +#undef new +#endif + +// for gettimeofday and GetSystemTimeAsFileTime +#ifdef OMIM_OS_WINDOWS + #include "windows.hpp" +#else + #include +#endif + +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif