Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 537888be authored by Yabin Cui's avatar Yabin Cui Committed by Gerrit Code Review
Browse files

Merge "kill HAVE_LOCALTIME_R"

parents f0044947 25d58a93
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@ time_t ZipEntry::getModWhen(void) const
 */
void ZipEntry::setModWhen(time_t when)
{
#ifdef HAVE_LOCALTIME_R
#if !defined(_WIN32)
    struct tm tmResult;
#endif
    time_t even;
@@ -350,7 +350,7 @@ void ZipEntry::setModWhen(time_t when)
    even = (time_t)(((unsigned long)(when) + 1) & (~1));

    /* expand */
#ifdef HAVE_LOCALTIME_R
#if !defined(_WIN32)
    ptm = localtime_r(&even, &tmResult);
#else
    ptm = localtime(&even);