fix some MinGW compiling errors

This commit is contained in:
Jinhao
2015-05-04 03:42:16 +08:00
parent 6c473f141f
commit e7c9708b4f
2 changed files with 15 additions and 6 deletions

View File

@@ -19,7 +19,7 @@
namespace {
void localtime(struct tm& tm)
{
#if defined(NANA_WINDOWS)
#if defined(NANA_WINDOWS) && !defined(NANA_MINGW)
time_t t;
::time(&t);
if(localtime_s(&tm, &t) != 0)
@@ -274,7 +274,7 @@ namespace nana
{
value_.hour = t.tm_hour;
value_.minute = t.tm_min;
value_.second = t.tm_sec;
value_.second = t.tm_sec;
}
time::time(unsigned hour, unsigned minute, unsigned second)