From a245f9b2637349e713922dc7e5c76e5934356efd Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 6 Dec 2014 20:09:11 +0000 Subject: [PATCH] Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperly git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@223590 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/__config b/include/__config index df0bb77c0..8fd80bcb7 100644 --- a/include/__config +++ b/include/__config @@ -713,4 +713,9 @@ extern "C" void __sanitizer_annotate_contiguous_container( # define _LIBCPP_WEAK __attribute__((__weak__)) #endif +#if defined(_LIBCPP_HAS_NO_MONOTONIC_CLOCK) && !defined(_LIBCPP_HAS_NO_THREADS) +# error _LIBCPP_HAS_NO_MONOTONIC_CLOCK may only be defined when \ + _LIBCPP_HAS_NO_THREADS is defined. +#endif + #endif // _LIBCPP_CONFIG