Fix various macOS compatibility issues

This commit is contained in:
Lucca Jiménez Könings
2021-11-25 01:41:41 +01:00
committed by Lion
parent 6247061d09
commit 1a2a123d87
6 changed files with 17 additions and 14 deletions

View File

@@ -118,7 +118,7 @@ void RegisterThread(const std::string& str) {
#ifdef WIN32
ThreadId = std::to_string(GetCurrentThreadId());
#elif __APPLE__
ThreadId = std::to_string(getpid());
ThreadId = std::to_string(getpid()); // todo: research if 'getpid()' is a valid, posix compliant alternative to 'gettid()'
#else
ThreadId = std::to_string(gettid());
#endif