Skip to content

Commit

Permalink
libcxx: Use plain namespace std without versioning
Browse files Browse the repository at this point in the history
(cherry picked from commit ebb97ba)
Signed-off-by: LIU Hao <lh_mouse@126.com>
  • Loading branch information
lhmouse committed Nov 17, 2024
1 parent 1a0a790 commit 03b35a4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mcfgthread/libcxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
#include "gthr_aux.h"
#include <errno.h>

#ifdef _LIBCPP_BEGIN_NAMESPACE_STD
_LIBCPP_BEGIN_NAMESPACE_STD
#endif /* inside libc++ */
__MCF_CXX(extern "C" {)
__MCF_CXX(namespace std { extern "C" {)
#ifndef __MCF_LIBCXX_IMPORT
# define __MCF_LIBCXX_IMPORT
# define __MCF_LIBCXX_INLINE __MCF_GNU_INLINE
Expand Down Expand Up @@ -634,8 +631,5 @@ __MCF_libcxx_thread_yield(void) __MCF_noexcept
_MCF_yield();
}

__MCF_CXX(}) /* extern "C" */
#ifdef _LIBCPP_END_NAMESPACE_STD
_LIBCPP_END_NAMESPACE_STD
#endif /* inside libc++ */
__MCF_CXX(} }) /* extern "C"; namespace std */
#endif /* __MCFGTHREAD_LIBCXX_ */

0 comments on commit 03b35a4

Please sign in to comment.