linux build fix, pushed to svn.
This commit is contained in:
parent
5fbc008486
commit
341df897ca
|
@ -124,6 +124,7 @@ SET(SRC_FEX
|
|||
fex/7z_C/7zAlloc.c
|
||||
fex/7z_C/7zBuf.c
|
||||
fex/7z_C/7zCrc.c
|
||||
fex/7z_C/7zCrcOpt.c
|
||||
fex/7z_C/7zDecode.c
|
||||
fex/7z_C/7zExtract.c
|
||||
fex/7z_C/7zHeader.c
|
||||
|
@ -131,8 +132,11 @@ SET(SRC_FEX
|
|||
fex/7z_C/7zItem.c
|
||||
fex/7z_C/7zStream.c
|
||||
fex/7z_C/Bcj2.c
|
||||
fex/7z_C/Bra.c
|
||||
fex/7z_C/Bra86.c
|
||||
fex/7z_C/CpuArch.c
|
||||
fex/7z_C/LzmaDec.c
|
||||
fex/7z_C/Lzma2Dec.c
|
||||
fex/fex/Binary_Extractor.cpp
|
||||
fex/fex/blargg_common.cpp
|
||||
fex/fex/blargg_errors.cpp
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "blargg_endian.h"
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#if BLARGG_UTF8_PATHS
|
||||
#include <windows.h>
|
||||
|
|
|
@ -220,7 +220,11 @@ blargg_err_t Zip7_Extractor::next_v()
|
|||
|
||||
time_t _time = time;
|
||||
|
||||
#ifdef _WIN32
|
||||
localtime_s( &tm, &_time );
|
||||
#else
|
||||
localtime_r( &_time, &tm );
|
||||
#endif
|
||||
|
||||
date = ( tm.tm_sec >> 1 ) & 0x1F |
|
||||
(( tm.tm_min & 0x3F ) << 5 ) |
|
||||
|
|
Loading…
Reference in New Issue