diff --git a/common/TracySystem.cpp b/common/TracySystem.cpp index 3d2cac02..ddc70cd6 100644 --- a/common/TracySystem.cpp +++ b/common/TracySystem.cpp @@ -92,7 +92,7 @@ void SetThreadName( std::thread::native_handle_type handle, const char* name ) # ifdef _WIN32 data->id = GetThreadId( static_cast( handle ) ); # elif defined __APPLE__ - pthread_thread_id( handle, &data->id ); + pthread_threadid_np( handle, &data->id ); # else data->id = (uint64_t)handle; # endif