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
62f388e1
Commit
62f388e1
authored
Jun 26, 2020
by
Mark Barolak
Browse files
Merge pull request #2891 from zoddicus:fixMinGW
PiperOrigin-RevId: 317666280
parents
c6e309b2
1eda5d82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+3
-3
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
62f388e1
...
@@ -2055,15 +2055,15 @@ GTEST_DISABLE_MSC_DEPRECATED_PUSH_()
...
@@ -2055,15 +2055,15 @@ GTEST_DISABLE_MSC_DEPRECATED_PUSH_()
inline
int
ChDir
(
const
char
*
dir
)
{
return
chdir
(
dir
);
}
inline
int
ChDir
(
const
char
*
dir
)
{
return
chdir
(
dir
);
}
#endif
#endif
inline
FILE
*
FOpen
(
const
char
*
path
,
const
char
*
mode
)
{
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
>
{};
struct
wchar_codecvt
:
public
std
::
codecvt
<
wchar_t
,
char
,
std
::
mbstate_t
>
{};
std
::
wstring_convert
<
wchar_codecvt
>
converter
;
std
::
wstring_convert
<
wchar_codecvt
>
converter
;
std
::
wstring
wide_path
=
converter
.
from_bytes
(
path
);
std
::
wstring
wide_path
=
converter
.
from_bytes
(
path
);
std
::
wstring
wide_mode
=
converter
.
from_bytes
(
mode
);
std
::
wstring
wide_mode
=
converter
.
from_bytes
(
mode
);
return
_wfopen
(
wide_path
.
c_str
(),
wide_mode
.
c_str
());
return
_wfopen
(
wide_path
.
c_str
(),
wide_mode
.
c_str
());
#else
#else
// GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_MINGW
return
fopen
(
path
,
mode
);
return
fopen
(
path
,
mode
);
#endif // GTEST_OS_WINDOWS
#endif // GTEST_OS_WINDOWS
&& !GTEST_OS_WINDOWS_MINGW
}
}
#if !GTEST_OS_WINDOWS_MOBILE
#if !GTEST_OS_WINDOWS_MOBILE
inline
FILE
*
FReopen
(
const
char
*
path
,
const
char
*
mode
,
FILE
*
stream
)
{
inline
FILE
*
FReopen
(
const
char
*
path
,
const
char
*
mode
,
FILE
*
stream
)
{
...
...
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