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

Side by Side Diff: third_party/icu/patches/pmac.h.patch

Issue 6578003: Add back U_WCHAR_IS_UTF32 macro to pmac.h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | « no previous file | third_party/icu/public/common/unicode/pmac.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: common/unicode/pmac.h 1 --- common/unicode/pmac.h
2 =================================================================== 2 +++ common/unicode/pmac.h
3 --- common/unicode/pmac.h» (revision 69841)
4 +++ common/unicode/pmac.h» (working copy)
5 @@ -49,14 +49,20 @@ 3 @@ -49,14 +49,20 @@
6 #define U_DARWIN 4 #define U_DARWIN
7 #endif 5 #endif
8 6
9 +#include <AvailabilityMacros.h> 7 +#include <AvailabilityMacros.h>
10 + 8 +
11 /** 9 /**
12 * \def U_HAVE_DIRENT_H 10 * \def U_HAVE_DIRENT_H
13 * Define whether dirent.h is available 11 * Define whether dirent.h is available
14 * @internal 12 * @internal
(...skipping 14 matching lines...) Expand all
29 #endif 27 #endif
30 -#if 1 28 -#if 1
31 -#define U_TIMEZONE timezone 29 -#define U_TIMEZONE timezone
32 +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 30 +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
33 +#define U_TIMEZONE 0 31 +#define U_TIMEZONE 0
34 +#else 32 +#else
35 +#define U_TIMEZONE timezone 33 +#define U_TIMEZONE timezone
36 #endif 34 #endif
37 #if 1 35 #if 1
38 #define U_TZNAME tzname 36 #define U_TZNAME tzname
37 @@ -399,4 +407,18 @@
38
39 # endif
40 #endif
41 +
42 +/*===========================================================================*/
43 +/* Local defines */
44 +/*===========================================================================*/
45 +
46 +/* On the Mac, we define U_WCHAR_IS_UTF32 to treat wchar_t as though it
47 + contains UTF-32 at all times. Strictly speaking, that's not entirely
48 + correct given Mac's libc (__STDC_ISO_10646__ is not defined) , but provided
49 + that we ignore libc's locale support (by not calling setlocale) and its
50 + multibyte string support, this should be fine. Our codebase makes enough
51 + other assumptions about a UTF-8 locale and UTF-32 wchar_t strings for this
52 + to make sense. */
53 +#define U_WCHAR_IS_UTF32
54 +
55 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/icu/public/common/unicode/pmac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698