From 52cf49b10e83e88a3f0a4374e614b754fe9c0c75 Mon Sep 17 00:00:00 2001 From: Jungshik Shin Date: Thu, 1 May 2014 00:16:10 +0000 Subject: [PATCH] ICU-10873 newlib has _timezone instead of __timezone X-SVN-Rev: 35680 --- icu4c/source/common/putilimp.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/icu4c/source/common/putilimp.h b/icu4c/source/common/putilimp.h index 45e8eb680e0..4db983a733f 100644 --- a/icu4c/source/common/putilimp.h +++ b/icu4c/source/common/putilimp.h @@ -116,9 +116,13 @@ typedef size_t uintptr_t; #elif U_PLATFORM == U_PF_ANDROID # define U_TIMEZONE timezone #elif U_PLATFORM_IS_LINUX_BASED -# if !defined(__UCLIBC__) - /* __timezone is only available in glibc */ -# define U_TIMEZONE __timezone +# if defined(__UCLIBC__) + /* uClibc does not have __timezone or _timezone. */ +# elif defined(_NEWLIB_VERSION) +# define U_TIMEZONE _timezone +# else + /* glibc */ +# define U_TIMEZONE __timezone # endif #elif U_PLATFORM_USES_ONLY_WIN32_API # define U_TIMEZONE _timezone -- 2.40.0