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

Side by Side Diff: patches/vscomp.patch

Issue 1646623006: Fix compilation errors on Android and Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Created 4 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
« no previous file with comments | « icu.gyp ('k') | source/i18n/dtfmtsym.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 diff --git a/source/common/locmap.c b/source/common/locmap.c 1 diff --git a/source/common/locmap.c b/source/common/locmap.c
2 index c746ce3..224a2b1 100644 2 index c746ce3..224a2b1 100644
3 --- a/source/common/locmap.c 3 --- a/source/common/locmap.c
4 +++ b/source/common/locmap.c 4 +++ b/source/common/locmap.c
5 @@ -29,6 +29,7 @@ 5 @@ -29,6 +29,7 @@
6 #include "cstring.h" 6 #include "cstring.h"
7 #include "cmemory.h" 7 #include "cmemory.h"
8 8
9 +#if 0 9 +#if 0
10 #if U_PLATFORM == U_PF_WINDOWS && defined(_MSC_VER) && (_MSC_VER >= 1500) 10 #if U_PLATFORM == U_PF_WINDOWS && defined(_MSC_VER) && (_MSC_VER >= 1500)
(...skipping 19 matching lines...) Expand all
30 + * static const class variable. However, the C++ standard states that this 30 + * static const class variable. However, the C++ standard states that this
31 + * definition is correct. Perhaps there is a bug in the Microsoft compiler. 31 + * definition is correct. Perhaps there is a bug in the Microsoft compiler.
32 + * This is not an issue on any other compilers (that we know of). 32 + * This is not an issue on any other compilers (that we know of).
33 + * Cygwin with MSVC 9.0 also complains here about redefinition. 33 + * Cygwin with MSVC 9.0 also complains here about redefinition.
34 + */ 34 + */
35 +#if (!defined(_MSC_VER) || (_MSC_VER > 1800)) && !defined(CYGWINMSVC) 35 +#if (!defined(_MSC_VER) || (_MSC_VER > 1800)) && !defined(CYGWINMSVC)
36 const int32_t StringPiece::npos = 0x7fffffff; 36 const int32_t StringPiece::npos = 0x7fffffff;
37 +#endif 37 +#endif
38 38
39 U_NAMESPACE_END 39 U_NAMESPACE_END
40 diff --git a/source/i18n/dtfmtsym.cpp b/source/i18n/dtfmtsym.cpp
41 index e99670d..c9a3502 100644
42 --- a/source/i18n/dtfmtsym.cpp
43 +++ b/source/i18n/dtfmtsym.cpp
44 @@ -169,7 +169,7 @@ SharedDateFormatSymbols::~SharedDateFormatSymbols() {
45 template<> U_I18N_API
46 const SharedDateFormatSymbols *
47 LocaleCacheKey<SharedDateFormatSymbols>::createObject(
48 - const void */*unusedContext*/, UErrorCode &status) const {
49 + const void * /*unusedContext*/, UErrorCode &status) const {
50 char type[256];
51 Calendar::getCalendarTypeFromLocale(fLoc, type, UPRV_LENGTHOF(type), status );
52 if (U_FAILURE(status)) {
OLDNEW
« no previous file with comments | « icu.gyp ('k') | source/i18n/dtfmtsym.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698