diff options
author | Yabin Cui <yabinc@google.com> | 2014-11-13 11:51:37 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2014-11-13 11:51:37 -0800 |
commit | e9ae59b47f99322bbd11bd68513e20e742d8e4d8 (patch) | |
tree | 1e42e704b16871cc46412e8b3f77aa8ab942d0cf /tools | |
parent | 044568be18bb67a254398d65c15fe5e9caeb9d02 (diff) | |
download | build-e9ae59b47f99322bbd11bd68513e20e742d8e4d8.zip build-e9ae59b47f99322bbd11bd68513e20e742d8e4d8.tar.gz build-e9ae59b47f99322bbd11bd68513e20e742d8e4d8.tar.bz2 |
kill HAVE_LOCALTIME_R
Bug: 18361583
Change-Id: If76334a6e18893b65d9b526271620a460a75bf22
Diffstat (limited to 'tools')
-rw-r--r-- | tools/zipalign/ZipEntry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/zipalign/ZipEntry.cpp b/tools/zipalign/ZipEntry.cpp index d4d366d..b2270cb 100644 --- a/tools/zipalign/ZipEntry.cpp +++ b/tools/zipalign/ZipEntry.cpp @@ -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); |