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 {
156
156
// PlatformGetThreadID
157
157
// ===----------------------------------------------------------------------===//
158
158
159
- #if defined(__APPLE__) && defined( _LIBCPP_HAS_THREAD_API_PTHREAD)
159
+ #if defined(__APPLE__) && _LIBCPP_HAS_THREAD_API_PTHREAD
160
160
uint32_t PlatformThreadID () {
161
161
static_assert (sizeof (mach_port_t ) == sizeof (uint32_t ), " " );
162
162
return static_cast <uint32_t >(pthread_mach_thread_np (std::__libcpp_thread_get_current_id ()));
163
163
}
164
- #elif defined(SYS_gettid) && defined( _LIBCPP_HAS_THREAD_API_PTHREAD)
164
+ #elif defined(SYS_gettid) && _LIBCPP_HAS_THREAD_API_PTHREAD
165
165
uint32_t PlatformThreadID () {
166
166
static_assert (sizeof (pid_t ) == sizeof (uint32_t ), " " );
167
167
return static_cast <uint32_t >(syscall (SYS_gettid));
You can’t perform that action at this time.
0 commit comments