Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
bd9cd046
Commit
bd9cd046
authored
Nov 22, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w32pthreads: Fix function pointer casts
This eliminates a handful of warnings at every inclusion of the header.
parent
233d50b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
w32pthreads.h
compat/w32pthreads.h
+12
-12
No files found.
compat/w32pthreads.h
View file @
bd9cd046
...
...
@@ -382,18 +382,18 @@ static av_unused void w32thread_init(void)
#if _WIN32_WINNT < 0x0600
HANDLE
kernel_dll
=
GetModuleHandle
(
TEXT
(
"kernel32.dll"
));
/* if one is available, then they should all be available */
cond_init
=
(
void
*
)
GetProcAddress
(
kernel_dll
,
"InitializeConditionVariable"
);
cond_broadcast
=
(
void
*
)
GetProcAddress
(
kernel_dll
,
"WakeAllConditionVariable"
);
cond_signal
=
(
void
*
)
GetProcAddress
(
kernel_dll
,
"WakeConditionVariable"
);
cond_wait
=
(
void
*
)
GetProcAddress
(
kernel_dll
,
"SleepConditionVariableCS"
);
initonce_begin
=
(
void
*
)
GetProcAddress
(
kernel_dll
,
"InitOnceBeginInitialize"
);
initonce_complete
=
(
void
*
)
GetProcAddress
(
kernel_dll
,
"InitOnceComplete"
);
cond_init
=
(
void
(
WINAPI
*
)(
pthread_cond_t
*
))
GetProcAddress
(
kernel_dll
,
"InitializeConditionVariable"
);
cond_broadcast
=
(
void
(
WINAPI
*
)(
pthread_cond_t
*
))
GetProcAddress
(
kernel_dll
,
"WakeAllConditionVariable"
);
cond_signal
=
(
void
(
WINAPI
*
)(
pthread_cond_t
*
))
GetProcAddress
(
kernel_dll
,
"WakeConditionVariable"
);
cond_wait
=
(
BOOL
(
WINAPI
*
)(
pthread_cond_t
*
,
pthread_mutex_t
*
,
DWORD
))
GetProcAddress
(
kernel_dll
,
"SleepConditionVariableCS"
);
initonce_begin
=
(
BOOL
(
WINAPI
*
)(
pthread_once_t
*
,
DWORD
,
BOOL
*
,
void
**
))
GetProcAddress
(
kernel_dll
,
"InitOnceBeginInitialize"
);
initonce_complete
=
(
BOOL
(
WINAPI
*
)(
pthread_once_t
*
,
DWORD
,
void
*
))
GetProcAddress
(
kernel_dll
,
"InitOnceComplete"
);
#endif
}
...
...
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