Skip to content

Commit 31bfe83

Browse files
committed
libcxx: Settle for bizarre inclusion scheme of libc++
1 parent 8424c61 commit 31bfe83

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mcfgthread/libcxx.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
#include "fwd.h"
1212
#include "gthr_aux.h"
1313
#include <errno.h>
14-
#if __MCF_CXX11(1+)0
15-
# include <chrono>
16-
#endif
1714

1815
#ifdef _LIBCPP_BEGIN_NAMESPACE_STD
1916
_LIBCPP_BEGIN_NAMESPACE_STD
@@ -347,14 +344,14 @@ __MCF_LIBCXX_IMPORT
347344
void
348345
__MCF_libcxx_thread_sleep_for_ns_count(int64_t __ns) __MCF_noexcept;
349346

350-
#if __MCF_CXX11(1+)0
347+
#ifdef _LIBCPP___CHRONO_DURATION_H
351348
__MCF_ALWAYS_INLINE
352349
void
353-
__libcpp_thread_sleep_for(const ::std::chrono::nanoseconds& __ns) __MCF_noexcept
350+
__libcpp_thread_sleep_for(const chrono::nanoseconds& __ns) __MCF_noexcept
354351
{
355352
__MCF_libcxx_thread_sleep_for_ns_count(__ns.count());
356353
}
357-
#endif /* C++11 */
354+
#endif /* <chrono> included */
358355

359356
/* Gives up the current time slice, like `sched_yield()`. */
360357
__MCF_LIBCXX_IMPORT

0 commit comments

Comments
 (0)