File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,12 @@ class AtomicInt {
156156// PlatformGetThreadID
157157// ===----------------------------------------------------------------------===//
158158
159- #if defined(__APPLE__) && defined( _LIBCPP_HAS_THREAD_API_PTHREAD)
159+ #if defined(__APPLE__) && _LIBCPP_HAS_THREAD_API_PTHREAD
160160uint32_t PlatformThreadID () {
161161 static_assert (sizeof (mach_port_t ) == sizeof (uint32_t ), " " );
162162 return static_cast <uint32_t >(pthread_mach_thread_np (std::__libcpp_thread_get_current_id ()));
163163}
164- #elif defined(SYS_gettid) && defined( _LIBCPP_HAS_THREAD_API_PTHREAD)
164+ #elif defined(SYS_gettid) && _LIBCPP_HAS_THREAD_API_PTHREAD
165165uint32_t PlatformThreadID () {
166166 static_assert (sizeof (pid_t ) == sizeof (uint32_t ), " " );
167167 return static_cast <uint32_t >(syscall (SYS_gettid));
You can’t perform that action at this time.
0 commit comments