Add 3rd party mingw-std-threads headers to fix MinGW compilation

This commit is contained in:
Jonathan G Rennison
2019-04-10 17:35:43 +01:00
parent 58c27ab59e
commit f887b12be2
16 changed files with 2035 additions and 1 deletions

View File

@@ -31,6 +31,12 @@
#include <sys/stat.h>
#include "../../language.h"
#include "../../thread.h"
#include <map>
#include <mutex>
#if defined(__MINGW32__)
#include "../../3rdparty/mingw-std-threads/mingw.mutex.h"
#endif
#include "../../safeguards.h"
@@ -861,7 +867,7 @@ void SetCurrentThreadName(const char *threadName)
#pragma warning(pop)
}
#else
void SetCurrentThreadName(const char *)
void SetCurrentThreadName(const char *threadName)
{
Win32SetThreadName(GetCurrentThreadId(), threadName);
}