1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

win32/pthread: try to fix system headers leaking through

This commit is contained in:
sfan5 2023-10-18 16:26:04 +02:00
parent dad4e61b68
commit 3fb4eb2ba4

View File

@ -16,6 +16,12 @@
#ifndef MP_WRAP_PTHREAD_H_
#define MP_WRAP_PTHREAD_H_
// this is MinGW specific and sort of a hack but we really need to prevent
// system pthread headers from being included, which can happen through <time.h>
// and <unistd.h>:
#define WIN_PTHREADS_TIME_H
#define WIN_PTHREADS_UNISTD_H
#include <windows.h>
#include <sys/types.h>