Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(871)

Unified Diff: patches/putil.patch

Issue 266503003: Add a support for newlib (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/icu52/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « README.chromium ('k') | source/common/putilimp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/putil.patch
===================================================================
--- patches/putil.patch (revision 267150)
+++ patches/putil.patch (working copy)
@@ -11,3 +11,19 @@
# define U_HAVE_NL_LANGINFO_CODESET 0
#else
# define U_HAVE_NL_LANGINFO_CODESET 1
+@@ -116,9 +116,12 @@
+ #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
++# elif defined(__GLIBC__)
++# define U_TIMEZONE __timezone
+ # endif
+ #elif U_PLATFORM_USES_ONLY_WIN32_API
+ # define U_TIMEZONE _timezone
« no previous file with comments | « README.chromium ('k') | source/common/putilimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698