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
0797f738
Commit
0797f738
authored
Sep 01, 2017
by
NeroBurner
Committed by
NeroBurner
Jun 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mingw-w64: fix port.h pthread recreation
parent
d354e2e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
port.h
src/windows/port.h
+4
-2
No files found.
src/windows/port.h
View file @
0797f738
...
...
@@ -136,19 +136,21 @@ typedef int pid_t;
#endif // _MSC_VER
// ----------------------------------- THREADS
#ifndef __MINGW32__
#if defined(HAVE_PTHREAD)
# include <pthread.h>
#else // no PTHREAD
typedef
DWORD
pthread_t
;
typedef
DWORD
pthread_key_t
;
typedef
LONG
pthread_once_t
;
enum
{
PTHREAD_ONCE_INIT
=
0
};
// important that this be 0! for SpinLock
#define pthread_self GetCurrentThreadId
#define pthread_equal(pthread_t_1, pthread_t_2) ((pthread_t_1)==(pthread_t_2))
#endif // HAVE_PTHREAD
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