Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
glog
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
glog
Commits
9c584dd2
Commit
9c584dd2
authored
Oct 02, 2016
by
MiniLight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to avoid the error "conflicting declaration 'typedef DWORD
pthread_t'" etc.
parent
0472b91c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
port.h
src/windows/port.h
+2
-0
No files found.
src/windows/port.h
View file @
9c584dd2
...
...
@@ -136,6 +136,7 @@ typedef int pid_t;
#endif // _MSC_VER
// ----------------------------------- THREADS
#ifndef __MINGW32__
typedef
DWORD
pthread_t
;
typedef
DWORD
pthread_key_t
;
typedef
LONG
pthread_once_t
;
...
...
@@ -147,6 +148,7 @@ inline struct tm* localtime_r(const time_t* timep, struct tm* result) {
localtime_s
(
result
,
timep
);
return
result
;
}
#endif
inline
char
*
strerror_r
(
int
errnum
,
char
*
buf
,
size_t
buflen
)
{
strerror_s
(
buf
,
buflen
,
errnum
);
...
...
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