From 3fb4eb2ba47fea78e69937971974f42cba82d1df Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 18 Oct 2023 16:26:04 +0200 Subject: [PATCH] win32/pthread: try to fix system headers leaking through --- osdep/win32/include/pthread.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 +// and : +#define WIN_PTHREADS_TIME_H +#define WIN_PTHREADS_UNISTD_H + #include #include