summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <[email protected]>2025-09-07 22:03:50 +0200
committerTimo Rothenpieler <[email protected]>2025-09-14 11:45:11 +0000
commit7856f57533b14c18e888e275770a0ca26685d6e4 (patch)
tree9bab2ea7e0270437eed2b8abec0cf43a94a19f89
parent5146b2fb8b700c5376244859dcd1731e4470e3b7 (diff)
compat/w32pthreads: fix compatibility with C++
-rw-r--r--compat/w32pthreads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h
index 6f2734b470..61f3dfcdd9 100644
--- a/compat/w32pthreads.h
+++ b/compat/w32pthreads.h
@@ -46,7 +46,7 @@
#include "libavutil/time.h"
#include "libavutil/wchar_filename.h"
-typedef struct pthread_t {
+typedef struct w32pthread_t {
void *handle;
void *(*func)(void* arg);
void *arg;
@@ -85,7 +85,7 @@ static av_unused int pthread_create(pthread_t *thread, const void *unused_attr,
{
pthread_t ret;
- ret = av_mallocz(sizeof(*ret));
+ ret = (pthread_t)av_mallocz(sizeof(*ret));
if (!ret)
return EAGAIN;