]> granicus.if.org Git - icu/commitdiff
ICU-13323 make U_TIMEZONE work on newlib when U_PLATFORM_IS_LINUX_BASED is not detected
authorMarkus Scherer <markus.icu@gmail.com>
Thu, 17 Aug 2017 18:29:27 +0000 (18:29 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Thu, 17 Aug 2017 18:29:27 +0000 (18:29 +0000)
X-SVN-Rev: 40340

icu4c/source/common/putilimp.h

index 269b28c34b0b2dfd1f45bb48e90d80af67cfec1d..eb9b5380f147dfc5f47bd02f3bbe39c13cd55463 100644 (file)
@@ -111,15 +111,15 @@ typedef size_t uintptr_t;
     /* Use the predefined value. */
 #elif U_PLATFORM == U_PF_ANDROID
 #   define U_TIMEZONE timezone
+#elif defined(__UCLIBC__)
+    // uClibc does not have __timezone or _timezone.
+#elif defined(_NEWLIB_VERSION)
+#   define U_TIMEZONE _timezone
+#elif defined(__GLIBC__)
+    // glibc
+#   define U_TIMEZONE __timezone
 #elif U_PLATFORM_IS_LINUX_BASED
-#   if defined(__UCLIBC__)
-       /* uClibc does not have __timezone or _timezone. */
-#   elif defined(_NEWLIB_VERSION)
-#      define U_TIMEZONE      _timezone
-#   elif defined(__GLIBC__)
-       /* glibc */
-#      define U_TIMEZONE      __timezone
-#   endif
+    // not defined
 #elif U_PLATFORM_USES_ONLY_WIN32_API
 #   define U_TIMEZONE _timezone
 #elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)