diff options
author | Frerich Raabe <raabe@froglogic.com> | 2015-12-08 15:17:03 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-12-09 08:33:30 +0000 |
commit | 5e7f87612009108c50a12fa1c506c0247e14dd29 (patch) | |
tree | 842ac0dfb786a772733bab59e129459086b590f1 /src/libs/installer/lib7z_facade.cpp | |
parent | c0add2065a85b00791ad12c2f1afcde71c603513 (diff) |
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 <time.h> should be included, so let's do that to
make the build succeed.
Change-Id: I8447ed0c97480485e4219f6e413b05d80be6ef63
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/lib7z_facade.cpp')
-rw-r--r-- | src/libs/installer/lib7z_facade.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <time.h> // for localtime_s +# endif #else extern "C" int global_use_utf16_conversion; |