]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
win32: _localtime32() should only be used with mingw-w64
authorRamiro <ramiro.polla@gmail.com>
Mon, 19 Jul 2010 22:13:46 +0000 (19:13 -0300)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 20 Jul 2010 21:39:12 +0000 (23:39 +0200)
util.c

diff --git a/util.c b/util.c
index ae3d94039b3636a11f8e6ad486ee1c962588aada..34acbc5ab12d59414a34666c2c2ea48faa0677f8 100644 (file)
--- 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);