Initial import

This commit is contained in:
gab
2014-01-25 11:09:04 +02:00
commit 681e40ce46
26 changed files with 1287 additions and 0 deletions

24
src/os.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "stdafx.h"
#include "c11log/details/os.h"
namespace c11log {
namespace details {
namespace os {
std::tm localtime(const std::time_t &time_t)
{
#ifdef _MSC_VER
std::tm tm;
localtime_s(&tm, &time_t);
return tm;
#endif
}
std::tm localtime()
{
std::time_t now_t = time(0);
return localtime(now_t);
}
}
}
}