summaryrefslogtreecommitdiffstats
path: root/liblog/logprint.c
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2014-11-13 10:02:08 -0800
committerYabin Cui <yabinc@google.com>2014-11-13 10:11:23 -0800
commit8a98535bcb48dfd4bfe3dfddddc82925a2f1502b (patch)
treef1acebfd35cff260c400f11dae03f330200f9029 /liblog/logprint.c
parentca1797ae00d3b5bf2eb4d1cad5bb68cef0074346 (diff)
downloadcore-8a98535bcb48dfd4bfe3dfddddc82925a2f1502b.tar.gz
core-8a98535bcb48dfd4bfe3dfddddc82925a2f1502b.tar.bz2
core-8a98535bcb48dfd4bfe3dfddddc82925a2f1502b.zip
kill HAVE_LOCALTIME_R
Bug: 18361583 Change-Id: Icdc745a5204bba26c6438d16ed38ec791e136163
Diffstat (limited to 'liblog/logprint.c')
-rw-r--r--liblog/logprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblog/logprint.c b/liblog/logprint.c
index 244f723f0..9b5a543bf 100644
--- a/liblog/logprint.c
+++ b/liblog/logprint.c
@@ -726,7 +726,7 @@ char *android_log_formatLogLine (
const AndroidLogEntry *entry,
size_t *p_outLength)
{
-#if defined(HAVE_LOCALTIME_R)
+#if !defined(_WIN32)
struct tm tmBuf;
#endif
struct tm* ptm;
@@ -749,7 +749,7 @@ char *android_log_formatLogLine (
* in the time stamp. Don't use forward slashes, parenthesis,
* brackets, asterisks, or other special chars here.
*/
-#if defined(HAVE_LOCALTIME_R)
+#if !defined(_WIN32)
ptm = localtime_r(&(entry->tv_sec), &tmBuf);
#else
ptm = localtime(&(entry->tv_sec));