fix for compilation of gtest on VS2012

per http://code.google.com/p/googletest/issues/detail?id=412

[email protected]
BUG=143646


Review URL: https://chromiumcodereview.appspot.com/11088033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160974 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/testing/gtest.gyp b/testing/gtest.gyp
index 877c55c7..9dfb16f79 100644
--- a/testing/gtest.gyp
+++ b/testing/gtest.gyp
@@ -121,7 +121,7 @@
             ],
           },
         }],
-        ['OS=="android" or (OS=="win" and MSVS_VERSION=="2012")', {
+        ['OS=="android"', {
           # We want gtest features that use tr1::tuple, but we currently
           # don't support the variadic templates used by libstdc++'s
           # implementation. gtest supports this scenario by providing its
@@ -135,6 +135,16 @@
             ],
           },
         }],
+        ['OS=="win" and MSVS_VERSION=="2012"', {
+          'defines': [
+            '_VARIADIC_MAX=10',
+          ],
+          'direct_dependent_settings': {
+            'defines': [
+              '_VARIADIC_MAX=10',
+            ],
+          },
+        }],
       ],
       'direct_dependent_settings': {
         'defines': [