mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-05 23:36:23 +00:00
Fix various macOS compatibility issues
This commit is contained in:
committed by
Lion
parent
6247061d09
commit
1a2a123d87
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user