Oooooh, I like it!
Thanks, Jon On 12/6/14 1:09 PM, Eric Fiselier wrote:
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 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-- Jon Roelofs [email protected] CodeSourcery / Mentor Embedded _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
