From 5e7f87612009108c50a12fa1c506c0247e14dd29 Mon Sep 17 00:00:00 2001 From: Frerich Raabe Date: Tue, 8 Dec 2015 15:17:03 +0100 Subject: Fixed compiling lib7z_facade.cpp with Visual Studio 2013 Commit c43f3f0c683841f7b2bd62ce8c1556f2e5412d4d introduced a usage of localtime_s for non-MinGW Windows builds. Visual Studio 2013 complained about this, saying ..\..\..\..\source\src\libs\installer\lib7z_facade.cpp(331) : error C3861: 'localtime_s': identifier not found The MSDN explains that should be included, so let's do that to make the build succeed. Change-Id: I8447ed0c97480485e4219f6e413b05d80be6ef63 Reviewed-by: Karsten Heimrich --- src/libs/installer/lib7z_facade.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/installer/lib7z_facade.cpp b/src/libs/installer/lib7z_facade.cpp index a5a038d91..795a2612c 100644 --- a/src/libs/installer/lib7z_facade.cpp +++ b/src/libs/installer/lib7z_facade.cpp @@ -76,6 +76,9 @@ HINSTANCE g_hInstance = 0; # define S_IFLNK 0120000 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) # define FILE_ATTRIBUTE_UNIX_EXTENSION 0x8000 /* trick for Unix */ +# if !defined(Q_CC_MINGW) +# include // for localtime_s +# endif #else extern "C" int global_use_utf16_conversion; -- cgit v1.2.3