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
1 changed files with 6 additions and 0 deletions

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>