diff options
author | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-05-20 00:42:22 +0000 |
---|---|---|
committer | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2011-05-20 00:42:22 +0000 |
commit | 587c1b37c2f0b6d430fb13ce09326db0135b557c (patch) | |
tree | 9396b2a9b8eb5d3c30beb9001e983bba37bc7774 /src/gmock-matchers.cc | |
parent | 47be72a952e672e2635c62353d25e611e9a70dac (diff) | |
download | googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.tar.gz googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.tar.bz2 googletest-587c1b37c2f0b6d430fb13ce09326db0135b557c.zip |
Adds support for building Google Mock as a shared library (DLL).
Diffstat (limited to 'src/gmock-matchers.cc')
-rw-r--r-- | src/gmock-matchers.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gmock-matchers.cc b/src/gmock-matchers.cc index a5e6824d..63f3859b 100644 --- a/src/gmock-matchers.cc +++ b/src/gmock-matchers.cc @@ -67,7 +67,7 @@ namespace internal { // Joins a vector of strings as if they are fields of a tuple; returns // the joined string. -string JoinAsTuple(const Strings& fields) { +GTEST_API_ string JoinAsTuple(const Strings& fields) { switch (fields.size()) { case 0: return ""; @@ -89,8 +89,9 @@ string JoinAsTuple(const Strings& fields) { // 'negation' is false; otherwise returns the description of the // negation of the matcher. 'param_values' contains a list of strings // that are the print-out of the matcher's parameters. -string FormatMatcherDescription(bool negation, const char* matcher_name, - const Strings& param_values) { +GTEST_API_ string FormatMatcherDescription(bool negation, + const char* matcher_name, + const Strings& param_values) { string result = ConvertIdentifierNameToWords(matcher_name); if (param_values.size() >= 1) result += " " + JoinAsTuple(param_values); |