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

Side by Side Diff: source/common/putilimp.h

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
« README.chromium ('K') | « patches/putil.patch ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ****************************************************************************** 2 ******************************************************************************
3 * 3 *
4 * Copyright (C) 1997-2013, International Business Machines 4 * Copyright (C) 1997-2013, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ****************************************************************************** 7 ******************************************************************************
8 * 8 *
9 * FILE NAME : putilimp.h 9 * FILE NAME : putilimp.h
10 * 10 *
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 /* not defined */ 109 /* not defined */
110 #else 110 #else
111 # define U_TZSET tzset 111 # define U_TZSET tzset
112 #endif 112 #endif
113 113
114 #if defined(U_TIMEZONE) || defined(U_HAVE_TIMEZONE) 114 #if defined(U_TIMEZONE) || defined(U_HAVE_TIMEZONE)
115 /* Use the predefined value. */ 115 /* Use the predefined value. */
116 #elif U_PLATFORM == U_PF_ANDROID 116 #elif U_PLATFORM == U_PF_ANDROID
117 # define U_TIMEZONE timezone 117 # define U_TIMEZONE timezone
118 #elif U_PLATFORM_IS_LINUX_BASED 118 #elif U_PLATFORM_IS_LINUX_BASED
119 /* uClibc does not have __timezone nor _timezone. */
Mark Mentovai 2014/04/30 14:06:27 or, not nor.
120 /* gLibc has __timezone while newlib has _timezone. */
119 # if !defined(__UCLIBC__) 121 # if !defined(__UCLIBC__)
120 /* __timezone is only available in glibc */ 122 # if defined(__GLIBC__)
121 # define U_TIMEZONE __timezone 123 # define U_TIMEZONE __timezone
124 # else
Mark Mentovai 2014/04/30 14:06:27 https://codereview.chromium.org/162913002/ uses _N
125 # define U_TIMEZONE _timezone
126 # endif
122 # endif 127 # endif
123 #elif U_PLATFORM_USES_ONLY_WIN32_API 128 #elif U_PLATFORM_USES_ONLY_WIN32_API
124 # define U_TIMEZONE _timezone 129 # define U_TIMEZONE _timezone
125 #elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__) 130 #elif U_PLATFORM == U_PF_BSD && !defined(__NetBSD__)
126 /* not defined */ 131 /* not defined */
127 #elif U_PLATFORM == U_PF_OS400 132 #elif U_PLATFORM == U_PF_OS400
128 /* not defined */ 133 /* not defined */
129 #elif U_PLATFORM == U_PF_IPHONE 134 #elif U_PLATFORM == U_PF_IPHONE
130 /* not defined */ 135 /* not defined */
131 #else 136 #else
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 /* also _C_TS_calloc(x) */ 603 /* also _C_TS_calloc(x) */
599 #else 604 #else
600 /* C defaults */ 605 /* C defaults */
601 # define uprv_default_malloc(x) malloc(x) 606 # define uprv_default_malloc(x) malloc(x)
602 # define uprv_default_realloc(x,y) realloc(x,y) 607 # define uprv_default_realloc(x,y) realloc(x,y)
603 # define uprv_default_free(x) free(x) 608 # define uprv_default_free(x) free(x)
604 #endif 609 #endif
605 610
606 611
607 #endif 612 #endif
OLDNEW
« README.chromium ('K') | « patches/putil.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698