Add mingw compile support
This commit is contained in:
parent
3b4f134c08
commit
c3ea6f4ddb
5 changed files with 20 additions and 6 deletions
4
externals/microprofile/microprofile.h
vendored
4
externals/microprofile/microprofile.h
vendored
|
@ -512,7 +512,7 @@ typedef int MpSocket;
|
|||
|
||||
#ifndef _WIN32
|
||||
typedef pthread_t MicroProfileThread;
|
||||
#elif defined(_WIN32)
|
||||
#elif defined(_MSC_VER)
|
||||
typedef HANDLE MicroProfileThread;
|
||||
#else
|
||||
typedef std::thread* MicroProfileThread;
|
||||
|
@ -921,7 +921,7 @@ void MicroProfileThreadJoin(MicroProfileThread* pThread)
|
|||
int r = pthread_join(*pThread, 0);
|
||||
MP_ASSERT(r == 0);
|
||||
}
|
||||
#elif defined(_WIN32)
|
||||
#elif defined(_MSC_VER)
|
||||
typedef HANDLE MicroProfileThread;
|
||||
DWORD _stdcall ThreadTrampoline(void* pFunc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue