- bug fixes for non C++x11 compilers for using chrono

This commit is contained in:
SoftCoder
2015-11-21 11:45:52 -08:00
parent 49ae35e7cf
commit 15d5a9bbd6
3 changed files with 13 additions and 3 deletions

View File

@@ -25,7 +25,7 @@
#include <utility>
#include <SDL.h>
#include <map>
#include <chrono>
//#include <chrono>
#include "leak_dumper.h"
#if (defined WIN32) && !(defined snprintf)
@@ -91,7 +91,7 @@ public:
virtual void ShellCommandOutput_CallbackEvent(string cmd,char *output,void *userdata) = 0;
};
typedef std::chrono::time_point<std::chrono::system_clock> system_time_point;
//typedef std::chrono::time_point<std::chrono::system_clock> system_time_point;
tm threadsafe_localtime(const time_t &time);
// extracting std::time_t from std:chrono for "now"
time_t systemtime_now();