Index: src/gtest-internal-inl.h |
=================================================================== |
--- src/gtest-internal-inl.h (revision 610) |
+++ src/gtest-internal-inl.h (working copy) |
@@ -219,6 +219,7 @@ |
bool throw_on_failure_; |
} GTEST_ATTRIBUTE_UNUSED_; |
+#if GTEST_HAS_WCHAR |
// Converts a Unicode code point to a narrow string in UTF-8 encoding. |
// code_point parameter is of type UInt32 because wchar_t may not be |
// wide enough to contain a code point. |
@@ -243,6 +244,7 @@ |
// and contains invalid UTF-16 surrogate pairs, values in those pairs |
// will be encoded as individual Unicode characters from Basic Normal Plane. |
GTEST_API_ String WideStringToUtf8(const wchar_t* str, int num_chars); |
+#endif |
// Reads the GTEST_SHARD_STATUS_FILE environment variable, and creates the file |
// if the variable is present. If a file already exists at this location, this |
@@ -947,7 +949,9 @@ |
// Parses the command line for Google Test flags, without initializing |
// other parts of Google Test. |
GTEST_API_ void ParseGoogleTestFlagsOnly(int* argc, char** argv); |
+#if GTEST_HAS_WCHAR |
GTEST_API_ void ParseGoogleTestFlagsOnly(int* argc, wchar_t** argv); |
+#endif |
#if GTEST_HAS_DEATH_TEST |