mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-25 04:56:13 +08:00
Fix chromium build (libcxx)
Remove the reference to pthread_mach_thread_np() in libcxx headers. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@293167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -149,11 +149,6 @@ int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
|
|||||||
void (*init_routine)(void));
|
void (*init_routine)(void));
|
||||||
|
|
||||||
// Thread id
|
// Thread id
|
||||||
#if defined(__APPLE__) && !defined(__arm__)
|
|
||||||
_LIBCPP_THREAD_ABI_VISIBILITY
|
|
||||||
mach_port_t __libcpp_thread_get_port();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_LIBCPP_THREAD_ABI_VISIBILITY
|
_LIBCPP_THREAD_ABI_VISIBILITY
|
||||||
bool __libcpp_thread_id_equal(__libcpp_thread_id t1, __libcpp_thread_id t2);
|
bool __libcpp_thread_id_equal(__libcpp_thread_id t1, __libcpp_thread_id t2);
|
||||||
|
|
||||||
@@ -297,12 +292,6 @@ int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Thread id
|
// Thread id
|
||||||
#if defined(__APPLE__) && !defined(__arm__)
|
|
||||||
mach_port_t __libcpp_thread_get_port() {
|
|
||||||
return pthread_mach_thread_np(pthread_self());
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Returns non-zero if the thread ids are equal, otherwise 0
|
// Returns non-zero if the thread ids are equal, otherwise 0
|
||||||
bool __libcpp_thread_id_equal(__libcpp_thread_id t1, __libcpp_thread_id t2)
|
bool __libcpp_thread_id_equal(__libcpp_thread_id t1, __libcpp_thread_id t2)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user