Unittest buildfixes on mac

This commit is contained in:
Henrik Rydgård committed 2021-06-12 22:42:10 +02:00
1 parent b42e49d49d
commit 50d9d7ea6f
5 files changed
+19 -4

No files matched your search

+5 -1
View File
@@ -132,7 +132,11 @@ void AssertCurrentThreadName(const char *threadName) {
int GetCurrentThreadIdForDebug() {
#if PPSSPP_PLATFORM(WINDOWS)
return (int)GetCurrentThreadId();
#elif PPSSPP_PLATFORM(MAC) || PPSSPP_PLATFORM(IOS) || defined(__OpenBSD__) || defined(__FreeBSD__)
uint64_t tid = 0;
pthread_threadid_np(NULL, &tid);
return (int)tid;
#else
return gettid();
return (int)gettid();
#endif
}