]> granicus.if.org Git - icu/commitdiff
ICU-9239 Fix StringPiece::npos build error on Windows
authorMichael Ow <mow@svn.icu-project.org>
Thu, 19 Apr 2012 19:07:33 +0000 (19:07 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Thu, 19 Apr 2012 19:07:33 +0000 (19:07 +0000)
X-SVN-Rev: 31746

icu4c/source/common/stringpiece.cpp

index 64cd376f02cda2dd3923fec5a5cbabd00e39c2f7..d9194e31e18a7db6e3afd5b3020a88191cdd5091 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2010, International Business Machines
+// Copyright (C) 2009-2012, International Business Machines
 // Corporation and others. All Rights Reserved.
 //
 // Copyright 2004 and onwards Google Inc.
@@ -75,7 +75,7 @@ operator==(const StringPiece& x, const StringPiece& y) {
  * Visual Studios 9.0.
  * Cygwin with MSVC 9.0 also complains here about redefinition.
  */
-#if (!defined(_MSC_VER) || (_MSC_VER > 1500)) && !defined(CYGWINMSVC)
+#if (!defined(_MSC_VER) || (_MSC_VER >= 1500)) && !defined(CYGWINMSVC)
 const int32_t StringPiece::npos;
 #endif