mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-6890 Check for cygwinmsvc build environment before declaring npos.
X-SVN-Rev: 25950
This commit is contained in:
parent
4a41624cd6
commit
77aeb37635
1 changed files with 2 additions and 1 deletions
|
@ -45,8 +45,9 @@ StringPiece::StringPiece(const StringPiece& x, int32_t pos, int32_t len) {
|
|||
* definition is correct. Perhaps there is a bug in the Microsoft compiler.
|
||||
* This is not an issue on any other compilers (that we know of) including
|
||||
* Visual Studios 9.0.
|
||||
* Cygwin with MSVC 9.0 also complains here about redefinition.
|
||||
*/
|
||||
#if !defined(_MSC_VER) || (_MSC_VER >= 1500)
|
||||
#if (!defined(_MSC_VER) || (_MSC_VER >= 1500)) && !defined(CYGWINMSVC)
|
||||
const int32_t StringPiece::npos;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue