1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

compat/w32pthreads: fix compatibility with C++

This commit is contained in:
Timo Rothenpieler
2025-09-07 22:03:50 +02:00
parent 5146b2fb8b
commit 7856f57533

View File

@@ -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;