Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperly

llvm-svn: 223590
This commit is contained in:
Eric Fiselier 2014-12-06 20:09:11 +00:00
parent 3280a5d9f5
commit 2050bedf03
1 changed files with 5 additions and 0 deletions

View File

@ -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