Merge "kill HAVE_LOCALTIME_R"
This commit is contained in:
@@ -338,7 +338,7 @@ time_t ZipEntry::getModWhen(void) const
|
|||||||
*/
|
*/
|
||||||
void ZipEntry::setModWhen(time_t when)
|
void ZipEntry::setModWhen(time_t when)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LOCALTIME_R
|
#if !defined(_WIN32)
|
||||||
struct tm tmResult;
|
struct tm tmResult;
|
||||||
#endif
|
#endif
|
||||||
time_t even;
|
time_t even;
|
||||||
@@ -350,7 +350,7 @@ void ZipEntry::setModWhen(time_t when)
|
|||||||
even = (time_t)(((unsigned long)(when) + 1) & (~1));
|
even = (time_t)(((unsigned long)(when) + 1) & (~1));
|
||||||
|
|
||||||
/* expand */
|
/* expand */
|
||||||
#ifdef HAVE_LOCALTIME_R
|
#if !defined(_WIN32)
|
||||||
ptm = localtime_r(&even, &tmResult);
|
ptm = localtime_r(&even, &tmResult);
|
||||||
#else
|
#else
|
||||||
ptm = localtime(&even);
|
ptm = localtime(&even);
|
||||||
|
|||||||
Reference in New Issue
Block a user