Skip to content

Commit

Permalink
libcxx: Use plain namespace std without versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Nov 17, 2024
1 parent 31bfe83 commit ebb97ba
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 @@ -650,8 +647,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 ebb97ba

Please sign in to comment.