mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Unittest buildfixes on mac
This commit is contained in:
1 parent
b42e49d49d
commit
50d9d7ea6f
5 files changed
+19
-4
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user