From: Ramiro Date: Mon, 19 Jul 2010 22:13:46 +0000 (-0300) Subject: win32: _localtime32() should only be used with mingw-w64 X-Git-Tag: v3.1~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a29a99ba47a3dba7797e7caf4a212bb9495455dd;p=thirdparty%2Fccache.git win32: _localtime32() should only be used with mingw-w64 --- diff --git a/util.c b/util.c index ae3d94039..34acbc5ab 100644 --- a/util.c +++ b/util.c @@ -77,7 +77,7 @@ static void log_prefix(void) struct tm *tm; gettimeofday(&tv, NULL); -#ifdef _WIN32 +#ifdef __MINGW64_VERSION_MAJOR tm = _localtime32(&tv.tv_sec); #else tm = localtime(&tv.tv_sec);