Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperly
authorEric Fiselier <eric@efcs.ca>
Sat, 6 Dec 2014 20:09:11 +0000 (20:09 +0000)
committerEric Fiselier <eric@efcs.ca>
Sat, 6 Dec 2014 20:09:11 +0000 (20:09 +0000)
llvm-svn: 223590

libcxx/include/__config

index df0bb77..8fd80bc 100644 (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