Fix various macOS compatibility issues

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

No files matched your search

+1 -1
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