Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (C) 2009, International Business Machines | 1 // Copyright (C) 2009, International Business Machines |
| 2 // Corporation and others. All Rights Reserved. | 2 // Corporation and others. All Rights Reserved. |
| 3 // | 3 // |
| 4 // Copyright 2004 and onwards Google Inc. | 4 // Copyright 2004 and onwards Google Inc. |
| 5 // | 5 // |
| 6 // Author: wilsonh@google.com (Wilson Hsieh) | 6 // Author: wilsonh@google.com (Wilson Hsieh) |
| 7 // | 7 // |
| 8 | 8 |
| 9 #include "unicode/utypes.h" | 9 #include "unicode/utypes.h" |
| 10 #include "unicode/stringpiece.h" | 10 #include "unicode/stringpiece.h" |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 } | 38 } |
| 39 ptr_ = x.ptr_ + pos; | 39 ptr_ = x.ptr_ + pos; |
| 40 length_ = len; | 40 length_ = len; |
| 41 } | 41 } |
| 42 | 42 |
| 43 /* Microsft Visual Studios <= 8.0 complains about redefinition of this | 43 /* Microsft Visual Studios <= 8.0 complains about redefinition of this |
| 44 * static const class variable. However, the C++ standard states that this | 44 * static const class variable. However, the C++ standard states that this |
| 45 * definition is correct. Perhaps there is a bug in the Microsoft compiler. | 45 * definition is correct. Perhaps there is a bug in the Microsoft compiler. |
| 46 * This is not an issue on any other compilers (that we know of) including | 46 * This is not an issue on any other compilers (that we know of) including |
| 47 * Visual Studios 9.0. | 47 * Visual Studios 9.0. |
| 48 * Cygwin with MSVC 9.0 also complains here about redefinition. | 48 * Cygwin with MSVC 9.0 also complains here about redefinition. |
|
M-A Ruel
2010/08/04 22:35:26
I wonder what's "cygwin with msvc9"
| |
| 49 */ | 49 */ |
| 50 #if (!defined(_MSC_VER) || (_MSC_VER >= 1500)) && !defined(CYGWINMSVC) | 50 #if (!defined(_MSC_VER) || (_MSC_VER > 1500)) && !defined(CYGWINMSVC) |
| 51 const int32_t StringPiece::npos; | 51 const int32_t StringPiece::npos; |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 U_NAMESPACE_END | 54 U_NAMESPACE_END |
| OLD | NEW |