ICU-6890 Check for cygwinmsvc build environment before declaring npos.

X-SVN-Rev: 25950
This commit is contained in:
Michael Ow 2009-04-29 20:29:22 +00:00
parent 4a41624cd6
commit 77aeb37635

View file

@ -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