[libcxx] r223590 - Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperly

Eric Fiselier eric at efcs.ca
Sat Dec 6 12:09:11 PST 2014


Author: ericwf
Date: Sat Dec  6 14:09:11 2014
New Revision: 223590

URL: http://llvm.org/viewvc/llvm-project?rev=223590&view=rev
Log:
Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperly

Modified:
    libcxx/trunk/include/__config

Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=223590&r1=223589&r2=223590&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Sat Dec  6 14:09:11 2014
@@ -713,4 +713,9 @@ extern "C" void __sanitizer_annotate_con
 #  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





More information about the cfe-commits mailing list