diff --git a/indra/test/test.cpp b/indra/test/test.cpp
index c9e985c914bbbc6718c27cb94ef60623997b8fe5..e7ba8e33b8c19a59f6fa44d05dec56d661bd5990 100644
--- a/indra/test/test.cpp
+++ b/indra/test/test.cpp
@@ -54,8 +54,10 @@
 #	include "ctype_workaround.h"
 #endif
 
+#ifndef LL_WINDOWS
 #include <gmock/gmock.h>
 #include <gtest/gtest.h>
+#endif
 
 namespace tut
 {
@@ -243,7 +245,9 @@ int main(int argc, char **argv)
 {
 	// The following line must be executed to initialize Google Mock
 	// (and Google Test) before running the tests.
+#ifndef LL_WINDOWS
 	::testing::InitGoogleMock(&argc, argv);
+#endif
 	LLError::initForApplication(".");
 	LLError::setFatalFunction(wouldHaveCrashed);
 	LLError::setDefaultLevel(LLError::LEVEL_ERROR);