mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-21 15:57:30 +00:00
Fix various macOS compatibility issues
This commit is contained in:
1 parent
6247061d09
commit
1a2a123d87
6 files changed
+17
-14
No files matched your search
+1
-1
@@ -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