Add mingw compile support

This commit is contained in:
James Rowe
2016-08-01 15:13:35 -06:00
parent 309ffc1df1
commit 35a852ba53
5 changed files with 19 additions and 7 deletions

View File

@@ -512,7 +512,7 @@ typedef int MpSocket;
#if defined(__APPLE__) || defined(__linux__)
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)
{