Mark new GetWithoutMatchers method as part of the exported API, to address MSVC linker errors.

This commit is contained in:
David Sunderland 2018-04-18 20:25:31 -04:00
parent 7878b27ddd
commit d5725da968
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ class WithoutMatchers {
};
// Internal use only: access the singleton instance of WithoutMatchers.
WithoutMatchers GetWithoutMatchers();
GTEST_API_ WithoutMatchers GetWithoutMatchers();
// TODO(wan@google.com): group all type utilities together.

View File

@ -188,7 +188,7 @@ GTEST_API_ void Log(LogSeverity severity, const std::string& message,
std::cout << ::std::flush;
}
WithoutMatchers GetWithoutMatchers() { return WithoutMatchers(); }
GTEST_API_ WithoutMatchers GetWithoutMatchers() { return WithoutMatchers(); }
GTEST_API_ void IllegalDoDefault(const char* file, int line) {
internal::Assert(