Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Googletest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Meng
Googletest
Commits
62f388e1
Commit
62f388e1
authored
4 years ago
by
Mark Barolak
Browse files
Options
Downloads
Plain Diff
Merge pull request #2891 from zoddicus:fixMinGW
PiperOrigin-RevId: 317666280
parents
c6e309b2
1eda5d82
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
googletest/include/gtest/internal/gtest-port.h
+3
-3
3 additions, 3 deletions
googletest/include/gtest/internal/gtest-port.h
with
3 additions
and
3 deletions
googletest/include/gtest/internal/gtest-port.h
+
3
−
3
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment