aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest.cc
diff options
context:
space:
mode:
authorvladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-05-20 00:38:55 +0000
committervladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-05-20 00:38:55 +0000
commit7e29bb7f7ebc2a1734415cb64395d87fc87d12be (patch)
tree6f3fdf1b0fc40796c496e055aee9a09093711ddc /src/gtest.cc
parentee2f8caecc3199c8fdb03d07f0c6c653334f75b3 (diff)
downloadgoogletest-7e29bb7f7ebc2a1734415cb64395d87fc87d12be.tar.gz
googletest-7e29bb7f7ebc2a1734415cb64395d87fc87d12be.tar.bz2
googletest-7e29bb7f7ebc2a1734415cb64395d87fc87d12be.zip
Adds support for building Google Mock as a shared library (DLL).
Diffstat (limited to 'src/gtest.cc')
-rw-r--r--src/gtest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtest.cc b/src/gtest.cc
index 904d9d74..b6481f7f 100644
--- a/src/gtest.cc
+++ b/src/gtest.cc
@@ -305,7 +305,7 @@ UInt32 Random::Generate(UInt32 range) {
// Test. g_init_gtest_count is set to the number of times
// InitGoogleTest() has been called. We don't protect this variable
// under a mutex as it is only accessed in the main thread.
-int g_init_gtest_count = 0;
+GTEST_API_ int g_init_gtest_count = 0;
static bool GTestIsInitialized() { return g_init_gtest_count != 0; }
// Iterates over a vector of TestCases, keeping a running sum of the
@@ -360,7 +360,7 @@ void AssertHelper::operator=(const Message& message) const {
}
// Mutex for linked pointers.
-GTEST_DEFINE_STATIC_MUTEX_(g_linked_ptr_mutex);
+GTEST_API_ GTEST_DEFINE_STATIC_MUTEX_(g_linked_ptr_mutex);
// Application pathname gotten in InitGoogleTest.
String g_executable_path;