summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYabin Cui2014-11-13 12:02:08 -0600
committerYabin Cui2014-11-13 12:11:23 -0600
commit8a98535bcb48dfd4bfe3dfddddc82925a2f1502b (patch)
treef1acebfd35cff260c400f11dae03f330200f9029 /liblog/fake_log_device.c
parentca1797ae00d3b5bf2eb4d1cad5bb68cef0074346 (diff)
downloadplatform-system-core-8a98535bcb48dfd4bfe3dfddddc82925a2f1502b.tar.gz
platform-system-core-8a98535bcb48dfd4bfe3dfddddc82925a2f1502b.tar.xz
platform-system-core-8a98535bcb48dfd4bfe3dfddddc82925a2f1502b.zip
kill HAVE_LOCALTIME_R
Bug: 18361583 Change-Id: Icdc745a5204bba26c6438d16ed38ec791e136163
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r--liblog/fake_log_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c
index 136792ddd..b8d87bb02 100644
--- a/liblog/fake_log_device.c
+++ b/liblog/fake_log_device.c
@@ -352,7 +352,7 @@ static ssize_t fake_writev(int fd, const struct iovec *iov, int iovcnt) {
352static void showLog(LogState *state, 352static void showLog(LogState *state,
353 int logPrio, const char* tag, const char* msg) 353 int logPrio, const char* tag, const char* msg)
354{ 354{
355#if defined(HAVE_LOCALTIME_R) 355#if !defined(_WIN32)
356 struct tm tmBuf; 356 struct tm tmBuf;
357#endif 357#endif
358 struct tm* ptm; 358 struct tm* ptm;
@@ -377,7 +377,7 @@ static void showLog(LogState *state,
377 * in the time stamp. Don't use forward slashes, parenthesis, 377 * in the time stamp. Don't use forward slashes, parenthesis,
378 * brackets, asterisks, or other special chars here. 378 * brackets, asterisks, or other special chars here.
379 */ 379 */
380#if defined(HAVE_LOCALTIME_R) 380#if !defined(_WIN32)
381 ptm = localtime_r(&when, &tmBuf); 381 ptm = localtime_r(&when, &tmBuf);
382#else 382#else
383 ptm = localtime(&when); 383 ptm = localtime(&when);