kill HAVE_LOCALTIME_R

Bug: 18361583
Change-Id: If76334a6e18893b65d9b526271620a460a75bf22
This commit is contained in:
Yabin Cui
2014-11-13 11:51:37 -08:00
parent 044568be18
commit e9ae59b47f
5 changed files with 2 additions and 22 deletions

View File

@@ -356,7 +356,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;
@@ -368,7 +368,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);