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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « README.chromium ('k') | source/common/putilimp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Index: source/common/putilimp.h 1 Index: source/common/putilimp.h
2 =================================================================== 2 ===================================================================
3 --- source/common/putilimp.h (revision 259715) 3 --- source/common/putilimp.h (revision 259715)
4 +++ source/common/putilimp.h (working copy) 4 +++ source/common/putilimp.h (working copy)
5 @@ -85,7 +85,7 @@ 5 @@ -85,7 +85,7 @@
6 6
7 #ifdef U_HAVE_NL_LANGINFO_CODESET 7 #ifdef U_HAVE_NL_LANGINFO_CODESET
8 /* Use the predefined value. */ 8 /* Use the predefined value. */
9 -#elif U_PLATFORM_HAS_WIN32_API 9 -#elif U_PLATFORM_HAS_WIN32_API
10 +#elif U_PLATFORM_HAS_WIN32_API || U_PLATFORM == U_PF_ANDROID || U_PLATFORM == U _PF_QNX 10 +#elif U_PLATFORM_HAS_WIN32_API || U_PLATFORM == U_PF_ANDROID || U_PLATFORM == U _PF_QNX
11 # define U_HAVE_NL_LANGINFO_CODESET 0 11 # define U_HAVE_NL_LANGINFO_CODESET 0
12 #else 12 #else
13 # define U_HAVE_NL_LANGINFO_CODESET 1 13 # define U_HAVE_NL_LANGINFO_CODESET 1
14 @@ -116,9 +116,12 @@
15 #elif U_PLATFORM == U_PF_ANDROID
16 # define U_TIMEZONE timezone
17 #elif U_PLATFORM_IS_LINUX_BASED
18 -# if !defined(__UCLIBC__)
19 - /* __timezone is only available in glibc */
20 -# define U_TIMEZONE __timezone
21 +# if defined(__UCLIBC__)
22 + /* uClibc does not have __timezone or _timezone. */
23 +# elif defined(_NEWLIB_VERSION)
24 +# define U_TIMEZONE _timezone
25 +# elif defined(__GLIBC__)
26 +# define U_TIMEZONE __timezone
27 # endif
28 #elif U_PLATFORM_USES_ONLY_WIN32_API
29 # define U_TIMEZONE _timezone
OLDNEW
« 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