Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
aea0d17e
Commit
aea0d17e
authored
Jan 25, 2019
by
Hugo Lindström
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-compile-on-wec2013' into v1.8.x
parents
542e057c
d2b89946
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
gtest-port.h
googletest/include/gtest/internal/gtest-port.h
+11
-2
No files found.
googletest/include/gtest/internal/gtest-port.h
View file @
aea0d17e
...
...
@@ -271,7 +271,14 @@
#ifndef _WIN32_WCE
# include <sys/types.h>
# include <sys/stat.h>
#endif // !_WIN32_WCE
#elif _WIN32_WCE >= 0x800 // Windows Embedded Compact 2013
// Forward declare instead of including <windows.h> / <windef.h> / <winnt.h>
typedef
wchar_t
WCHAR
;
typedef
WCHAR
*
PWCHAR
,
*
LPWCH
,
*
PWCH
;
typedef
const
WCHAR
*
LPCWCH
,
*
PCWCH
;
typedef
__readableTo
(
sentinel
(
0
))
const
WCHAR
*
LPCWSTR
,
*
PCWSTR
;
typedef
const
WCHAR
*
LPCWCHAR
,
*
PCWCHAR
;
#endif
#if defined __APPLE__
# include <AvailabilityMacros.h>
...
...
@@ -430,6 +437,8 @@
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
// separate (equivalent) structs, instead of using typedef
typedef
struct
_CRITICAL_SECTION
GTEST_CRITICAL_SECTION
;
#elif _WIN32_WCE >= 0x800
typedef
struct
CRITICAL_SECTION
GTEST_CRITICAL_SECTION
;
#else
// Assume CRITICAL_SECTION is a typedef of _RTL_CRITICAL_SECTION.
// This assumption is verified by
...
...
@@ -2468,7 +2477,7 @@ inline char* StrDup(const char* src) { return _strdup(src); }
# endif // __BORLANDC__
# if GTEST_OS_WINDOWS_MOBILE
inline
int
FileNo
(
FILE
*
file
)
{
return
reinterpret
_cast
<
int
>
(
_fileno
(
file
));
}
inline
int
FileNo
(
FILE
*
file
)
{
return
static
_cast
<
int
>
(
_fileno
(
file
));
}
// Stat(), RmDir(), and IsDir() are not needed on Windows CE at this
// time and thus not defined there.
# else
...
...
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