Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
1eda5d82
Commit
1eda5d82
authored
Jun 10, 2020
by
Ryan Harrison
Browse files
Fix build issue for MinGW
Fixes #2885
parent
4fe01803
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+1
-1
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
1eda5d82
...
...
@@ -2055,7 +2055,7 @@ GTEST_DISABLE_MSC_DEPRECATED_PUSH_()
inline
int
ChDir
(
const
char
*
dir
)
{
return
chdir
(
dir
);
}
#endif
inline
FILE
*
FOpen
(
const
char
*
path
,
const
char
*
mode
)
{
#if GTEST_OS_WINDOWS
#if GTEST_OS_WINDOWS
&& !GTEST_OS_WINDOWS_MINGW
struct
wchar_codecvt
:
public
std
::
codecvt
<
wchar_t
,
char
,
std
::
mbstate_t
>
{};
std
::
wstring_convert
<
wchar_codecvt
>
converter
;
std
::
wstring
wide_path
=
converter
.
from_bytes
(
path
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment