diff options
author | sfan5 <sfan5@live.de> | 2023-10-18 16:26:04 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-10-20 21:30:51 +0200 |
commit | 3fb4eb2ba47fea78e69937971974f42cba82d1df (patch) | |
tree | 669a3fc7686f1f904d77cf22c6e762100723077f /osdep/win32 | |
parent | dad4e61b68ba6bd941c481b957e7df1052fba088 (diff) | |
download | mpv-3fb4eb2ba47fea78e69937971974f42cba82d1df.tar.bz2 mpv-3fb4eb2ba47fea78e69937971974f42cba82d1df.tar.xz |
win32/pthread: try to fix system headers leaking through
Diffstat (limited to 'osdep/win32')
-rw-r--r-- | osdep/win32/include/pthread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/osdep/win32/include/pthread.h b/osdep/win32/include/pthread.h index 76af00a514..b955e722ae 100644 --- a/osdep/win32/include/pthread.h +++ b/osdep/win32/include/pthread.h @@ -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> |