mirror of https://github.com/mpv-player/mpv
win32/pthread: try to fix system headers leaking through
This commit is contained in:
parent
dad4e61b68
commit
3fb4eb2ba4
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue